parent
5871608510
commit
7c55166e32
4
main.py
4
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)
|
||||
|
|
Loading…
Reference in New Issue