fixxed some stuff

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-27 15:29:43 +02:00
parent 5871608510
commit 7c55166e32
1 changed files with 2 additions and 2 deletions

View File

@ -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)