Draw a text beginning at (x,y)
@status current Introduced in 2.0.0, SHADOWED introduced in 2.2.1
-
x,y(positive numbers) starting coordinate -
text(string) text to display -
flags(unsigned number) drawing flags. All values can be combined together using the + character. ie BLINK + DBLSIZE. See the Appendix for available characters in each font set. -
0 or not specifiednormal font -
XXLSIZEjumbo sized font -
DBLSIZEdouble size font -
MIDSIZEmid sized font -
SMLSIZEsmall font -
INVERSinverted display -
BLINKblinking text -
SHADOWEDHorus only, apply a shadow effect
none
local function run(event)
lcd.clear()
lcd.drawText(1, 1,"drawText() example", 0)
lcd.drawText(1, 11,"0 - default", 0)
lcd.drawText(1, 21,"BLINK", BLINK)
lcd.drawText(1, 31,"INVERS + BLINK", INVERS + BLINK)
lcd.drawText(120, 1,"XXLSIZE", DBLSIZE)
lcd.drawText(120, 21,"MIDSIZE", MIDSIZE)
lcd.drawText(120, 36,"SMLSIZE", SMLSIZE)
end
return{run=run}