diff --git a/displayword.lua b/displayword.lua index 057aba7..d9acb16 100644 --- a/displayword.lua +++ b/displayword.lua @@ -39,11 +39,12 @@ end -- Initial value of percentage briPercent=50 +data={} -- Module displaying of the words function generateLEDs(words, colorForground, colorMin1, colorMin2, colorMin3, colorMin4) -- Set the local variables needed for the colored progress bar - local data={} + data={} local minutes=1 if (words.min1 == 1) then diff --git a/main.lua b/main.lua index 5ed07d4..a46bf4a 100644 --- a/main.lua +++ b/main.lua @@ -52,7 +52,7 @@ function displayTime() ledBuf = generateLEDs(words, color, color1, color2, color3, color4) - 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 .. " char: " .. tostring(data.drawnCharacters)) --if lines 4 to 6 are inverted due to hardware-fuckup, unfuck it here if ((inv46 ~= nil) and (inv46 == "on")) then