Count words with drawing function
This commit is contained in:
parent
aeae13642f
commit
ab37d28904
@ -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
|
||||||
|
2
main.lua
2
main.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user