Commit 2d2c6e79 authored by Ralf's avatar Ralf

also mark first LED

parent b489bb4e
......@@ -44,10 +44,12 @@ while True:
for led in range(0, SIGN_LEDS):
if led == idx:
leds += rgb_to_led(1, 1, 1)
elif led % 100 == 0:
elif led == 0:
leds += rgb_to_led(1, 0, 0)
elif led % 10 == 0:
elif led % 100 == 0:
leds += rgb_to_led(0, 1, 0)
elif led % 10 == 0:
leds += rgb_to_led(0, 0, 1)
else:
leds += rgb_to_led(0, 0, 0)
badge.leds_send_data(bytes(leds), len(leds))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment