increased update cycle to 10s
This commit is contained in:
parent
ba6734d5ad
commit
467f525764
3
main.lua
3
main.lua
@ -49,7 +49,6 @@ function displayTime()
|
|||||||
end
|
end
|
||||||
local time = getTime(sec, timezoneoffset)
|
local time = getTime(sec, timezoneoffset)
|
||||||
local words = display_timestat(time.hour, time.minute)
|
local words = display_timestat(time.hour, time.minute)
|
||||||
print(package.path)
|
|
||||||
dp = dofile("displayword.lc")
|
dp = dofile("displayword.lc")
|
||||||
if (dp ~= nil) then
|
if (dp ~= nil) then
|
||||||
ledBuf = dp.generateLEDs(words, color, color1, color2, color3, color4)
|
ledBuf = dp.generateLEDs(words, color, color1, color2, color3, color4)
|
||||||
@ -132,7 +131,7 @@ function normalOperation()
|
|||||||
end)
|
end)
|
||||||
displayTime()
|
displayTime()
|
||||||
-- Start the time Thread
|
-- Start the time Thread
|
||||||
tmr.alarm(1, 20000, 1 ,function()
|
tmr.alarm(1, 10000, 1 ,function()
|
||||||
displayTime()
|
displayTime()
|
||||||
collectgarbage()
|
collectgarbage()
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user