parent
7c18a6e1c3
commit
3bfe66fdb8
2
main.py
2
main.py
|
@ -53,7 +53,7 @@ def rainbowCycle( strip, wait_ms=5, iterations=10):
|
||||||
elif power == "False":
|
elif power == "False":
|
||||||
break
|
break
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, wheel(client, (int(i * 256 / strip.numPixels()) + j) & 255))
|
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
|
||||||
strip.show()
|
strip.show()
|
||||||
time.sleep(wait_ms/1000.0)
|
time.sleep(wait_ms/1000.0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue