Skip to content

Commit b1f7d8b

Browse files
committed
Use strand_length variable instead of a literal number
1 parent c3bc68c commit b1f7d8b

File tree

1 file changed

+1
-1
lines changed
  • CircuitPython_Pico_PIO_Neopixel

1 file changed

+1
-1
lines changed

CircuitPython_Pico_PIO_Neopixel/code.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
num_strands=num_strands, auto_write=False, brightness=.18)
1515

1616
# Make a virtual PixelMap so that each strip can be controlled independently
17-
strips = [PixelMap(pixels, range(i*30, (i+1)*30), individual_pixels=True)
17+
strips = [PixelMap(pixels, range(i*strand_length, (i+1)*strand_length), individual_pixels=True)
1818
for i in range(num_strands)]
1919

2020
# This function makes a comet animation with slightly random settings

0 commit comments

Comments
 (0)