From a81cf8f31da6a56851e1675008cd6623a912f7b3 Mon Sep 17 00:00:00 2001 From: ollo Date: Fri, 10 May 2019 23:42:20 +0200 Subject: [PATCH] new algorithom works --- displayword.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/displayword.lua b/displayword.lua index eedf0e9..d03cd0d 100644 --- a/displayword.lua +++ b/displayword.lua @@ -1,7 +1,7 @@ -- Module filling a buffer, sent to the LEDs local M do -local updateColor = function (data, inverseRow) +local updateColor = function (data) --FIXME magic missing to start on the left side return data.colorFg end @@ -13,9 +13,9 @@ local drawLEDs = function(data, numberNewChars) local tmpBuf=nil for i=1,numberNewChars do if (tmpBuf == nil) then - tmpBuf = updateColor(data, inverseRow) + tmpBuf = updateColor(data) else - tmpBuf=tmpBuf .. updateColor(data, inverseRow) + tmpBuf=tmpBuf .. updateColor(data) end data.drawnCharacters=data.drawnCharacters+1 end @@ -134,8 +134,8 @@ if (words.fiveMin== 1) then buf = buf .. line --line 4-------- even row (so inverted) ------------- if (words.after == 1) then - line= line .. space:rep(2) -- TG - line= drawLEDs(data,4) -- NACH + line= space:rep(2) -- TG + line= line .. drawLEDs(data,4) -- NACH else line= space:rep(6) end