We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6cb7e commit c5fe168Copy full SHA for c5fe168
1 file changed
PyLeap_NeoPixel_demo/code.py
@@ -5,7 +5,7 @@
5
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.2, auto_write=False)
6
rainbow_cycle_demo = 1
7
8
-def wheel(pos):
+def colorwheel(pos):
9
if pos < 0 or pos > 255:
10
return (0, 0, 0)
11
if pos < 85:
@@ -20,7 +20,7 @@ def rainbow_cycle(wait):
20
for j in range(255):
21
for i in range(10):
22
rc_index = (i * 256 // 10) + j * 5
23
- pixels[i] = wheel(rc_index & 255)
+ pixels[i] = colorwheel(rc_index & 255)
24
pixels.show()
25
time.sleep(wait)
26
0 commit comments