diff --git a/main.py b/main.py index 4ebc81b..61e9128 100644 --- a/main.py +++ b/main.py @@ -43,6 +43,8 @@ def rainbowCycle(strip, wait_ms=5, iterations=10): for j in range(256*iterations): if mode > 0: break + elif power == "False": + break for i in range(strip.numPixels()): strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255)) strip.show()