From 5d89cf59f438472ba6f04bf376dd1d35ac30db38 Mon Sep 17 00:00:00 2001 From: Micah Elizabeth Scott <micah@scanlime.org> Date: Tue, 13 Aug 2013 09:51:10 -0700 Subject: [PATCH] Better timing for strobe and chase --- tools/chase.py | 2 +- tools/strobe.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/chase.py b/tools/chase.py index b527ac2..c98cdc3 100755 --- a/tools/chase.py +++ b/tools/chase.py @@ -12,4 +12,4 @@ while True: pixels = [ (0,0,0) ] * numLEDs pixels[i] = (255, 255, 255) client.put_pixels(pixels) - time.sleep(0.1) + time.sleep(0.01) diff --git a/tools/strobe.py b/tools/strobe.py index 81c802a..19dcb38 100755 --- a/tools/strobe.py +++ b/tools/strobe.py @@ -11,9 +11,7 @@ black = [ (0,0,0) ] * numLEDs white = [ (255,255,255) ] * numLEDs while True: - for i in range(10): - if i == 0: - client.put_pixels(white) - else: - client.put_pixels(black) - time.sleep(0.1) + client.put_pixels(white) + time.sleep(0.05) + client.put_pixels(black) + time.sleep(0.05) -- GitLab