Toggle Navigation
Hatchery
Eggs
Rainbow Party!
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import leds, utime, ledfx c = 0 # leds.dim_top(8) leds.dim_bottom(8) while True: c += 1 base_color = c % 360 colors = [] for led_id in range(0, 11): color_led = (base_color + (360 / 11) * led_id) % 360 colors.append((color_led, 1.0, 1.0)) leds.set_all_hsv(colors) leds.prep_hsv(leds.TOP_LEFT, colors[0]) leds.prep_hsv(leds.BOTTOM_LEFT, colors[0]) leds.prep_hsv(leds.TOP_RIGHT, colors[-1]) leds.prep_hsv(leds.BOTTOM_RIGHT, colors[-1]) leds.update() utime.sleep_ms(1)