.Print Method

Top  Previous  Next

Function:

Prints a line of text.

Syntax:

lcd.print(byref str as string,x as word,y as word) as word

Returns:

Total width of created output in pixels.

See Also:

Working With Text, lcd.getprintwidth

 


Part

Description

str

Text to print.

x

X coordinate of the top-left corner of the text output. Value range is 0 to lcd.width-1.

y

Y coordinate of the top-left corner of the text output. Value range is 0 to lcd.height-1.

Details

For this method to work, a font must first be selected with the lcd.setfont method. The lcd.textorientation and lcd.texthorizontalspacing properties affect how the text is printed.

This method always produces a single-line text output. Use lcd.printaligned if you want to print several lines of text at once.

The display panel must be enabled (lcd.enabled= 1- YES) for this method to work.