diff --git a/tools/chase.py b/tools/chase.py new file mode 100755 index 0000000000000000000000000000000000000000..b527ac2942e9fcef732246ed43cd432e4193a3e3 --- /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)