parent
5871608510
commit
7c55166e32
4
main.py
4
main.py
|
@ -70,13 +70,13 @@ def strobe(strip, color):
|
||||||
strip.show()
|
strip.show()
|
||||||
time.sleep(float(0.05))
|
time.sleep(float(0.05))
|
||||||
|
|
||||||
def randomColor(strip):
|
def randomColorPerLED(strip):
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255)))
|
strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255)))
|
||||||
strip.show()
|
strip.show()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
def randomColorPerLED(strip):
|
def randomColor(strip):
|
||||||
color = Color(randint(0, 255), randint(0, 255), randint(0, 255))
|
color = Color(randint(0, 255), randint(0, 255), randint(0, 255))
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, color)
|
strip.setPixelColor(i, color)
|
||||||
|
|
Loading…
Reference in New Issue