refactoring displayword to a module
This commit is contained in:
parent
c3e48fb17a
commit
ba6734d5ad
@ -47,6 +47,10 @@ local generateLEDs = function(words, colorForground, colorMin1, colorMin2, color
|
||||
-- Set the local variables needed for the colored progress bar
|
||||
data={}
|
||||
|
||||
if (words == nil) then
|
||||
return nil
|
||||
end
|
||||
|
||||
local minutes=1
|
||||
if (words.min1 == 1) then
|
||||
minutes = minutes + 1
|
||||
@ -249,6 +253,7 @@ M = {
|
||||
round = round,
|
||||
drawLEDs = drawLEDs,
|
||||
updateColor = updateColor,
|
||||
data = data,
|
||||
}
|
||||
end
|
||||
return M
|
Loading…
Reference in New Issue
Block a user