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):