diff --git a/micropython/examples/plasma2040/alternating-blinkies.py b/micropython/examples/plasma2040/alternating-blinkies.py index ae0d3306..cd9fcefc 100644 --- a/micropython/examples/plasma2040/alternating-blinkies.py +++ b/micropython/examples/plasma2040/alternating-blinkies.py @@ -36,10 +36,10 @@ while True: else: led_strip.set_hsv(i, HUE_2 / 360, 1.0, BRIGHTNESS) time.sleep(SPEED) - + for i in range(NUM_LEDS): if (i % 2) == 0: led_strip.set_hsv(i, HUE_2 / 360, 1.0, BRIGHTNESS) else: led_strip.set_hsv(i, HUE_1 / 360, 1.0, BRIGHTNESS) - time.sleep(SPEED) \ No newline at end of file + time.sleep(SPEED) diff --git a/micropython/examples/plasma2040/random-blinkies.py b/micropython/examples/plasma2040/random-blinkies.py index 446b12f4..8000f786 100644 --- a/micropython/examples/plasma2040/random-blinkies.py +++ b/micropython/examples/plasma2040/random-blinkies.py @@ -39,4 +39,4 @@ while True: # ...and then update one random pixel at a time to keep things fresh and sparkly. # Comment out the lines below if you want static lights. led_strip.set_hsv(randrange(0, NUM_LEDS), randrange(HUE_START, HUE_END) / 360, 1.0, uniform(BRIGHTNESS_MIN, BRIGHTNESS_MAX)) - time.sleep(SPEED) \ No newline at end of file + time.sleep(SPEED)