From 4b6eaead5c73284a143dcba86e757dc77109d6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 20 Feb 2024 17:40:44 +0100 Subject: [PATCH] testing other range methode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/main.py b/client/main.py index 3f03042..4931c8e 100644 --- a/client/main.py +++ b/client/main.py @@ -78,22 +78,22 @@ if __name__ == "__main__": mqttc.loop_start() while True: try: - for pixel in range(LEDS_PER_PIXEL): + for pixel in range(5): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip) - for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2): + for pixel in range(5, 10): update_led_strip(tuple(eval(rgb_values_list[1])), pixel, strip) - for pixel in range(LEDS_PER_PIXEL*2, LEDS_PER_PIXEL*3): + for pixel in range(10, 15): update_led_strip(tuple(eval(rgb_values_list[2])), pixel, strip) - for pixel in range(LEDS_PER_PIXEL*3, LEDS_PER_PIXEL*4): + for pixel in range(15, 20): update_led_strip(tuple(eval(rgb_values_list[3])), pixel, strip) - for pixel in range(LEDS_PER_PIXEL*4, LEDS_PER_PIXEL*5): + for pixel in range(20, 25): update_led_strip(tuple(eval(rgb_values_list[4])), pixel, strip) - for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6): + for pixel in range(25, 30): update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) except KeyboardInterrupt: for led in range(LED_COUNT):