From 0b124d559a04caec9e34961d67232f22b492ea54 Mon Sep 17 00:00:00 2001 From: C3MA Date: Tue, 19 Apr 2016 18:25:41 +0200 Subject: [PATCH] Included the Wordclock logic --- test.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test.lua b/test.lua index 8250213..97047cc 100644 --- a/test.lua +++ b/test.lua @@ -1,5 +1,6 @@ dofile("wlancfg.lua") dofile("timecore.lua") +dofile("wordclock.lua") print("Initialize Wordclock") function startTimeupdate() @@ -61,6 +62,13 @@ function startTimeupdate() print(hour) print(minutes) 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("---------------") conn:close() end) @@ -82,4 +90,4 @@ tmr.alarm(0, 100, 1, function() startTimeupdate() end) end -end) \ No newline at end of file +end)