Display amount of used characers

This commit is contained in:
ollo 2019-05-11 12:09:44 +02:00
parent a81cf8f31d
commit e68ab9f715

View File

@ -40,8 +40,6 @@ local data={}
-- Module displaying of the words -- Module displaying of the words
local generateLEDs = function(words, colorForground, colorMin1, colorMin2, colorMin3, colorMin4) local generateLEDs = function(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
data={}
if (words == nil) then if (words == nil) then
return nil return nil
end end
@ -73,9 +71,7 @@ local generateLEDs = function(words, colorForground, colorMin1, colorMin2, color
data.colorMin3=colorMin3 data.colorMin3=colorMin3
data.colorMin4=colorMin4 data.colorMin4=colorMin4
end end
data.words=words
data.drawnCharacters=0 data.drawnCharacters=0
data.drawnWords=0
local charsPerLine=11 local charsPerLine=11
-- Space / background has no color by default -- Space / background has no color by default
local space=string.char(0,0,0) local space=string.char(0,0,0)