lcd.drawTimer(x, y, value [, flags])
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Display a value formatted as time at (x,y)
@status current Introduced in 2.0.0, SHADOWED
introduced in 2.2.1
x,y
(positive numbers) starting coordinate
value
(number) time in seconds
flags
(unsigned number) drawing flags:
0 or not specified
normal representation (minutes and seconds)
TIMEHOUR
display hours
other general LCD flag also apply
SHADOWED
Horus only, apply a shadow effect
none
local upTime
local function background()
upTime = getTime() / 100
end
local function run(event)
background()
lcd.clear()
lcd.drawText(1, 1,"drawTimer() example", 0)
lcd.drawTimer(1, 10, upTime, TIMEHOUR)
end
return{run=run}