Commit 98c07b0d authored by Ralf's avatar Ralf

first working animation

parent cbc22435
import badge
import ugfx
import time
badge.init()
ugfx.init()
......@@ -17,3 +18,13 @@ ugfx.line(140 + len, 52, 140 + len, 70, ugfx.WHITE)
ugfx.string(140, 75, "Anyway", "Roboto_BlackItalic24", ugfx.WHITE)
ugfx.flush()
# LED fanciness
def all_same_color(r, g, b, w):
led_array = [g, r, b, w]
badge.leds_send_data(bytes(led_array*6), 24)
while True:
for r in range(0, 256):
all_same_color(r, 255-r, 0, 2)
time.sleep(0.02)
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