Commit 60158d63 authored by Christian Wander's avatar Christian Wander
Browse files

cleanup

parent 31e337da
import sacn
import time
import json
# import json
import blink
count = 144
pink = (255, 0, 255)
lightblue = (0, 255, 255)
blue = (0, 0, 255)
b = (0, 0, 0)
def main():
......@@ -22,13 +16,10 @@ def main():
sender.activate_output(universe)
sender[universe].destination = "192.168.178.37"
# mode 4 Multiple RGB ('led0 red', 'led0 green', 'led0 blue', 'led1 red', ...)
# sender[universe].dmx_data = (255, 0, 255, 0, 255, 255, 0, 0, 255) ## some test DMX data
# pink = (128, 128, 0, 128)
# sender[universe].dmx_data = (200, 0, 200)
images = ['data/squash-12x12.png',
images = ['data/cyber-12x12.png',
'data/squash-12x12.png',
'data/star2-12x12.png',
'data/tweety-12x12.png',
'data/heart-ping-12x12.png',
......@@ -43,11 +34,10 @@ def main():
for i in images:
pic = blink.Thing(file=i)
sender[universe].dmx_data = pic.snake_tuple()
time.sleep(5)
time.sleep(10)
sender.stop()
if __name__ == "__main__":
main()
# foo()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment