Skip to content

Commit 615538c

Browse files
authored
fix #66
typecast pixel position to int
1 parent 29a99c0 commit 615538c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/multistrandtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def multiColorWipe(color1, color2, wait_ms=5):
3636
if i % 2:
3737
# even number
3838
strip1.setPixelColor(i, color1)
39-
strip2.setPixelColor(i / 2, color2)
39+
strip2.setPixelColor(int(i / 2), color2)
4040
strip1.show()
4141
time.sleep(wait_ms / 1000.0)
4242
strip2.show()

0 commit comments

Comments
 (0)