lcd.drawBitmap
Displays prevoiusly loaded bitmap at (x,y) and optionally scales it.
Syntax
lcd.drawBitmap( bitmap, x, y [, scale] )
Parameters
Name
Req
Type
Description
x
integer
top coordinate
y
integer
left coordinate
scale
integer (0-100)
scale in percent ie. 50 divides size by two, 100 displays bitmap in original size, 200 doubles size.
Returns
none
Notes
Available on
API status
EdgeTX version
Action
2.3.0
Introduced
Examples
-- drawing bitmap stored on sd card root folder with original size
local myLogo = Bitmap.open("/logo.png")
lcd.drawBitmap(myLogo,10,10)
Related topics
Last updated
Was this helpful?