Skip to content
Snippets Groups Projects
Commit c35bfc95 authored by q3k's avatar q3k
Browse files

sim: implement leds.set_all_rgb

parent 3ab304f6
No related branches found
No related tags found
No related merge requests found
Pipeline #5719 passed
......@@ -17,6 +17,10 @@ def set_rgb(ix, r, g, b):
b = 255
_sim.set_led_rgb(ix, r, g, b)
def set_all_rgb(r, g, b):
for i in range(40):
set_rgb(i, r, g, b)
def set_hsv(ix, h, s, v):
color = pygame.Color(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment