From 93c6365ef8e83d081fc61378362b67de9f526f6b Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 1 Mar 2017 19:47:21 +0100 Subject: [PATCH] Display the amount of characters used to display the time --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index 0977342..ca7ee46 100644 --- a/main.lua +++ b/main.lua @@ -50,11 +50,11 @@ function displayTime() time = getTime(sec, timezoneoffset) words = display_timestat(time.hour, time.minute) - + local charactersOfTime = display_countwords_de(words) ledBuf = generateLEDs(words, color, color1, color2, color3, color4, - display_countwords_de(words)) + charactersOfTime) - print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second) + print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second .. " in " .. charactersOfTime .. " chars") -- Write the buffer to the LEDs ws2812.write(ledBuf)