From 60788e3af0a48b51e3214698ddde5445316d34d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 15:37:20 +0100 Subject: [PATCH] added debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/main.py b/client/main.py index be515bf..ddc2432 100644 --- a/client/main.py +++ b/client/main.py @@ -85,19 +85,24 @@ if __name__ == "__main__": while True: for pixel in range(LEDS_PER_PIXEL): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip) - + print(pixel) + print("") for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2): update_led_strip(tuple(eval(rgb_values_list[1])), pixel, strip) - + print(pixel) + print("") for pixel in range(LEDS_PER_PIXEL*2, LEDS_PER_PIXEL*3): update_led_strip(tuple(eval(rgb_values_list[2])), pixel, strip) - + print(pixel) + print("") for pixel in range(LEDS_PER_PIXEL*3, LEDS_PER_PIXEL*4): update_led_strip(tuple(eval(rgb_values_list[3])), pixel, strip) - + print(pixel) + print("") for pixel in range(LEDS_PER_PIXEL*4, LEDS_PER_PIXEL*5): update_led_strip(tuple(eval(rgb_values_list[4])), pixel, strip) - + print(pixel) + print("") for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6): update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) time.sleep(1) \ No newline at end of file