Commit 3d674ce1 authored by Christian Wander's avatar Christian Wander
Browse files

moar images

parent bc115be1
......@@ -10,6 +10,7 @@ lightblue = (0, 255, 255)
blue = (0, 0, 255)
b = (0, 0, 0)
def main():
print(">> Hello, doing fancy pi stuff.")
......@@ -19,7 +20,7 @@ def main():
sender = sacn.sACNsender()
sender.start()
sender.activate_output(universe)
sender[universe].destination = "192.168.178.37"
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
......@@ -27,42 +28,40 @@ def main():
# pink = (128, 128, 0, 128)
# sender[universe].dmx_data = (200, 0, 200)
# pic = blink.Thing(file = 'data/smile-heart-12x12.png')
pic = blink.Thing(file = 'data/darkside-12x12.png')
sender[universe].dmx_data = pic.snake_tuple()
time.sleep(5)
#colors = (pink, lightblue, blue)
images = ['data/squash-12x12.png',
'data/star2-12x12.png',
'data/tweety-12x12.png',
'data/heart-ping-12x12.png',
'data/elephant-12x12.png',
'data/bee-12x12.png',
'data/darkside-12x12.png',
'data/smile-heart-12x12.png',
'data/star-12x12.png',
'data/creeper-12x12.png']
while True:
for i in images:
pic = blink.Thing(file=i)
sender[universe].dmx_data = pic.snake_tuple()
time.sleep(5)
# while True:
# for c in colors:
# ## sender[universe].dmx_data = blink.eck(c)
# # eck = blink.tuplify(blink.snakify(blink.eck_tuple(c)))
#
# t = blink.heart_thing(c)
# sender[universe].dmx_data = t.snake_tuple()
# time.sleep(5)
## stopping the sender?!
sender.stop()
def gimme(color):
result = [0] * count * 3
i = 0
while i <= count * 3 -3:
result[i] = color[0]
result[i+1] = color[1]
result[i+2] = color[2]
i = i+3
return result
# def gimme(color):
#
# result = [0] * count * 3
#
# i = 0
# while i <= count * 3 -3:
# result[i] = color[0]
# result[i+1] = color[1]
# result[i+2] = color[2]
# i = i+3
#
# return result
if __name__ == "__main__":
main()
# foo()
\ No newline at end of file
# 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