Count words with drawing function

This commit is contained in:
ollo 2019-04-27 00:40:21 +02:00
parent aeae13642f
commit ab37d28904
2 changed files with 3 additions and 2 deletions

View File

@ -39,11 +39,12 @@ end
-- Initial value of percentage -- Initial value of percentage
briPercent=50 briPercent=50
data={}
-- Module displaying of the words -- Module displaying of the words
function generateLEDs(words, colorForground, colorMin1, colorMin2, colorMin3, colorMin4) function generateLEDs(words, colorForground, colorMin1, colorMin2, colorMin3, colorMin4)
-- Set the local variables needed for the colored progress bar -- Set the local variables needed for the colored progress bar
local data={} data={}
local minutes=1 local minutes=1
if (words.min1 == 1) then if (words.min1 == 1) then

View File

@ -52,7 +52,7 @@ function displayTime()
ledBuf = generateLEDs(words, color, color1, color2, color3, color4) 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 lines 4 to 6 are inverted due to hardware-fuckup, unfuck it here
if ((inv46 ~= nil) and (inv46 == "on")) then if ((inv46 ~= nil) and (inv46 == "on")) then