From 4b694a93b2ac0dbfbcc3c0ac3571c413999586e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 14:52:53 +0100 Subject: [PATCH] added update debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index e9e8624..1c60fd2 100644 --- a/client/main.py +++ b/client/main.py @@ -59,11 +59,13 @@ def is_connected_to_wifi(): return output.split('"')[1] def update_led_strip(rgb_values, pixel, strip): + print(pixel) + print(rgb_values) + print("") strip[int(pixel)] = rgb_values def on_message(mqttc, obj, msg): rgb_values_list = eval(msg.payload.decode()) - print(rgb_values_list) for pixel in range(LEDS_PER_PIXEL): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)