diff --git a/main.py b/main.py index 4396a73..3e132ed 100644 --- a/main.py +++ b/main.py @@ -70,13 +70,13 @@ def strobe(strip, color): strip.show() time.sleep(float(0.05)) -def randomColor(strip): +def randomColorPerLED(strip): for i in range(strip.numPixels()): strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255))) strip.show() time.sleep(1) -def randomColorPerLED(strip): +def randomColor(strip): color = Color(randint(0, 255), randint(0, 255), randint(0, 255)) for i in range(strip.numPixels()): strip.setPixelColor(i, color)