added default input

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 15:20:35 +01:00
parent d12e59cab3
commit 1b8e4cf61b
1 changed files with 4 additions and 1 deletions

View File

@ -79,8 +79,11 @@ if __name__ == "__main__":
mqttc.on_message = on_message mqttc.on_message = on_message
mqttc.subscribe("tube-"+str(wlan_mac_address)+"/pixel_colors", 0) mqttc.subscribe("tube-"+str(wlan_mac_address)+"/pixel_colors", 0)
mqttc.loop_forever() global rgb_values_list
rgb_values_list = eval("['[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]']")
mqttc.loop_forever()
print("test")
while True: while True:
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)