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

Another simple tool: Light LEDs in order

parent 61162a53
No related branches found
No related tags found
No related merge requests found
#!/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)
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