lcd.drawPixmap(x, y, name)

Draws a bitmap at (x,y)

@status current Introduced in 2.0.0

Parameters

  • x,y (positive numbers) starting coordinate

  • name (string) full path to the bitmap on SD card (i.e. “/BMP/test.bmp”)

Return value

none


Examples

lcd/drawPixmap-example

local function run(event)
  lcd.clear()
  lcd.drawText(1,1,"drawPixmap() example", 0)
  lcd.drawPixmap(96, 0, "/bmp/lua.bmp")
end

return{run=run}