lcd.drawScreenTitle(title, page, pages)

Draws a title bar

@status current Introduced in 2.0.0

Parameters

  • title (string) text for the title

  • page (number) page number

  • pages (number) total number of pages. Only used as indicator on the right side of title bar. (i.e. idx=2, cnt=5, display 2/5)

Return value

none


Examples

lcd/drawScreenTitle-example

local function run(event)
  lcd.clear()
  lcd.drawText(20, 20,"drawScreenTitle", DBLSIZE + BLINK)
  lcd.drawScreenTitle("This screen has one page", 1, 1)
end

return{run=run}