diff --git a/examples/flash.py b/examples/flash.py index 71a161c..91b8d62 100644 --- a/examples/flash.py +++ b/examples/flash.py @@ -5,8 +5,8 @@ num_leds = 30 pixels = ws2812b(num_leds, 0,0) while True: - for i in range(30): - for j in range(30): + for i in range(num_leds): + for j in range(num_leds): pixels.set_pixel(j,abs(i+j)%10,abs(i-(j+3))%10,abs(i-(j+6))%10) pixels.show() time.sleep(0.05)