Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Adafruit_LEDpixels/Adafruit_LEDpixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def rainbowCycle(pixels, wait):
# (thats the i / strip.numPixels() part)
# Then add in j which makes the colors go around per pixel
# the % 96 is to make the wheel cycle around
setpixelcolor(pixels, i, Wheel( ((i * 256 / len(pixels)) + j) % 256) )
setpixelcolor(pixels, i, Wheel( ((i * 256 // len(pixels)) + j) % 256) )
writestrip(pixels)
time.sleep(wait)

Expand Down