fixed some shit in debugger

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 14:06:53 +01:00
parent 641c7310a6
commit 0f8c300a32
1 changed files with 2 additions and 2 deletions

View File

@ -64,9 +64,9 @@ def update_led_strip(rgb_values, pixel, strip):
def on_message(mqttc, obj, msg):
rgb_values_list = eval(msg.payload.decode())
print(tuple(eval(rgb_values_list[0])))
for pixel in range(LEDS_PER_PIXEL):
print("Updating pixel "+str(pixel)+" with values: "+str(tuple(eval(rgb_values_list[0]))))
print("Updating pixel "+str(pixel)+" with values: ")
print(tuple(eval(rgb_values_list[0])))
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2):