Skip to content

Commit a4cb6d4

Browse files
committed
Clarify rainbow helper.
1 parent 04b7c32 commit a4cb6d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CircuitPython_Templates/status_led_one_neopixel_rainbow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020

2121
def rainbow(delay):
22-
for j in range(255):
23-
for i in range(1):
24-
pixel_index = (i * 256 // 1) + j
22+
for color_value in range(255):
23+
for pixels in range(1):
24+
pixel_index = (pixels * 256 // 1) + color_value
2525
pixel[i] = colorwheel(pixel_index & 255)
2626
pixel.show()
2727
time.sleep(delay)

0 commit comments

Comments
 (0)