From 2eef85227a3df9a9354ef66dc039e5c7e6ecdaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 13:32:19 +0100 Subject: [PATCH] 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 1c2f8b4..51b7c22 100644 --- a/client/main.py +++ b/client/main.py @@ -64,10 +64,12 @@ def update_led_strip(rgb_values, pixel, strip): def on_message(mqttc, obj, msg): rgb_values_list = msg.payload.decode() - print(rgb_values_list) + print(*ast.literal_eval(rgb_values_list)) print(rgb_values_list[0]) + time.sleep(1) + # print(list(*rgb_values_list[0])) # for pixel in range(LEDS_PER_PIXEL): # update_led_strip(tuple(*rgb_values_list[0]), pixel, strip)