diff --git a/led-badge-11x44.py b/led-badge-11x44.py index 4cf6b5a..2995c35 100755 --- a/led-badge-11x44.py +++ b/led-badge-11x44.py @@ -376,7 +376,9 @@ def header(lengths, speeds, modes, blink, ants): h[8+i] = 16*s[i] + m[i] for i in range(len(lengths)): - h[17+2*i] = lengths[i] + h[17+(2*i)-1] = lengths[i] // 256 + h[17+(2*i)] = lengths[i] % 256 + return h