Skip to content
Snippets Groups Projects
Commit 5d89cf59 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Better timing for strobe and chase

parent 7fa71c6c
No related branches found
No related tags found
No related merge requests found
...@@ -12,4 +12,4 @@ while True: ...@@ -12,4 +12,4 @@ while True:
pixels = [ (0,0,0) ] * numLEDs pixels = [ (0,0,0) ] * numLEDs
pixels[i] = (255, 255, 255) pixels[i] = (255, 255, 255)
client.put_pixels(pixels) client.put_pixels(pixels)
time.sleep(0.1) time.sleep(0.01)
...@@ -11,9 +11,7 @@ black = [ (0,0,0) ] * numLEDs ...@@ -11,9 +11,7 @@ black = [ (0,0,0) ] * numLEDs
white = [ (255,255,255) ] * numLEDs white = [ (255,255,255) ] * numLEDs
while True: while True:
for i in range(10): client.put_pixels(white)
if i == 0: time.sleep(0.05)
client.put_pixels(white) client.put_pixels(black)
else: time.sleep(0.05)
client.put_pixels(black)
time.sleep(0.1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment