From cc450a3488436a2fbf8eaeddbe3b8bd1e81207e3 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 5 Aug 2022 17:00:20 -0700 Subject: [PATCH] add algorithm version of the lookup table. --- blinkled/genseq.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blinkled/genseq.py b/blinkled/genseq.py index 40266c3..09148d3 100644 --- a/blinkled/genseq.py +++ b/blinkled/genseq.py @@ -65,6 +65,7 @@ def jm3decoder(trits, lastlvl=0): continue r.append('%d' % lookup[(lastlvl, lvl)]) + #r.append('%d' % ((lvl - lastlvl + 2) % 3)) lastlvl = lvl return ''.join(r)