added debug

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 14:36:27 +01:00
parent 9f4c4c6b2b
commit 81dd92a553
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ def update_led_strip(rgb_values, pixel, strip):
def on_message(mqttc, obj, msg): def on_message(mqttc, obj, msg):
rgb_values_list = eval(msg.payload.decode()) rgb_values_list = eval(msg.payload.decode())
print(rgb_values_list)
for pixel in range(LEDS_PER_PIXEL): for pixel in range(LEDS_PER_PIXEL):
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip) update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)