Display a value formatted as time at (x,y)
@status current Introduced in 2.0.0
-
x,y(positive numbers) starting coordinate -
value(number) time in seconds -
flags(unsigned number) drawing flags: -
0 or not specifiednormal representation (minutes and seconds) -
TIMEHOURdisplay hours -
other general LCD flag also apply
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}