Included the Wordclock logic
This commit is contained in:
parent
58f8779cd1
commit
0b124d559a
10
test.lua
10
test.lua
@ -1,5 +1,6 @@
|
|||||||
dofile("wlancfg.lua")
|
dofile("wlancfg.lua")
|
||||||
dofile("timecore.lua")
|
dofile("timecore.lua")
|
||||||
|
dofile("wordclock.lua")
|
||||||
print("Initialize Wordclock")
|
print("Initialize Wordclock")
|
||||||
|
|
||||||
function startTimeupdate()
|
function startTimeupdate()
|
||||||
@ -61,6 +62,13 @@ function startTimeupdate()
|
|||||||
print(hour)
|
print(hour)
|
||||||
print(minutes)
|
print(minutes)
|
||||||
print(seconds)
|
print(seconds)
|
||||||
|
-- Manually set something
|
||||||
|
leds=display_timestat(hour,minutes)
|
||||||
|
for k,v in pairs(leds) do
|
||||||
|
if (v == 1) then
|
||||||
|
print(k)
|
||||||
|
end
|
||||||
|
end
|
||||||
print("---------------")
|
print("---------------")
|
||||||
conn:close()
|
conn:close()
|
||||||
end)
|
end)
|
||||||
@ -82,4 +90,4 @@ tmr.alarm(0, 100, 1, function()
|
|||||||
startTimeupdate()
|
startTimeupdate()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user