diff --git a/demo.py b/demo.py index 56e1f67..1c8b0b2 100644 --- a/demo.py +++ b/demo.py @@ -74,9 +74,9 @@ def rainbowCycle(strip, wait_ms=10, iterations=5): time.sleep(wait_ms / 1000.0) -def theaterChaseRainbow(strip, wait_ms=50): +def theaterChaseRainbow(strip, wait_ms=50, iterations=10): """Rainbow movie theater light style chaser animation.""" - for j in range(256): + for j in range(iterations): for q in range(3): for i in range(0, strip.numPixels(), 3): strip.setPixelColor(i + q, wheel((i + j) % 255))