parent
42b18eab5f
commit
21847efdeb
2
main.py
2
main.py
|
@ -56,8 +56,8 @@ def rainbowCycle(strip, wait_ms=5, iterations=10):
|
||||||
def setColor(strip, color, wait_ms=10):
|
def setColor(strip, color, wait_ms=10):
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, color)
|
strip.setPixelColor(i, color)
|
||||||
strip.show()
|
|
||||||
time.sleep(float(0.01))
|
time.sleep(float(0.01))
|
||||||
|
strip.show()
|
||||||
time.sleep(wait_ms/1000.0)
|
time.sleep(wait_ms/1000.0)
|
||||||
|
|
||||||
def strobe(strip, color):
|
def strobe(strip, color):
|
||||||
|
|
Loading…
Reference in New Issue