From 02ec65e7cc29f85e2fcc379e6044775f2b791f00 Mon Sep 17 00:00:00 2001
From: Micah Elizabeth Scott <micah@scanlime.org>
Date: Sun, 28 Jul 2013 09:50:38 -0700
Subject: [PATCH] Another simple tool: Light LEDs in order

---
 tools/chase.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100755 tools/chase.py

diff --git a/tools/chase.py b/tools/chase.py
new file mode 100755
index 0000000..b527ac2
--- /dev/null
+++ b/tools/chase.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+# Light each LED in sequence, and repeat.
+
+import opc, time
+
+numLEDs = 512
+client = opc.Client('localhost:7890')
+
+while True:
+	for i in range(numLEDs):
+		pixels = [ (0,0,0) ] * numLEDs
+		pixels[i] = (255, 255, 255)
+		client.put_pixels(pixels)
+		time.sleep(0.1)
-- 
GitLab