From 1b8e4cf61b8547c2878e5658b15ff46063e4a6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 15:20:35 +0100 Subject: [PATCH] added default input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index ff1d101..3becf3a 100644 --- a/client/main.py +++ b/client/main.py @@ -79,8 +79,11 @@ if __name__ == "__main__": mqttc.on_message = on_message 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: for pixel in range(LEDS_PER_PIXEL): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)