added debug

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 15:37:20 +01:00
parent 2f70ee3c28
commit 60788e3af0
1 changed files with 10 additions and 5 deletions

View File

@ -85,19 +85,24 @@ if __name__ == "__main__":
while True:
for pixel in range(LEDS_PER_PIXEL):
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
print(pixel)
print("")
for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2):
update_led_strip(tuple(eval(rgb_values_list[1])), pixel, strip)
print(pixel)
print("")
for pixel in range(LEDS_PER_PIXEL*2, LEDS_PER_PIXEL*3):
update_led_strip(tuple(eval(rgb_values_list[2])), pixel, strip)
print(pixel)
print("")
for pixel in range(LEDS_PER_PIXEL*3, LEDS_PER_PIXEL*4):
update_led_strip(tuple(eval(rgb_values_list[3])), pixel, strip)
print(pixel)
print("")
for pixel in range(LEDS_PER_PIXEL*4, LEDS_PER_PIXEL*5):
update_led_strip(tuple(eval(rgb_values_list[4])), pixel, strip)
print(pixel)
print("")
for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6):
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
time.sleep(1)