parent
e65c9b02b5
commit
eeba48e52e
2
main.py
2
main.py
|
@ -43,6 +43,8 @@ def rainbowCycle(strip, wait_ms=5, iterations=10):
|
||||||
for j in range(256*iterations):
|
for j in range(256*iterations):
|
||||||
if mode > 0:
|
if mode > 0:
|
||||||
break
|
break
|
||||||
|
elif power == "False":
|
||||||
|
break
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
|
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
|
||||||
strip.show()
|
strip.show()
|
||||||
|
|
Loading…
Reference in New Issue