Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chris
Pixelframe
Commits
bc115be1
Commit
bc115be1
authored
Dec 20, 2020
by
Christian Wander
Browse files
progress
parent
f3903512
Changes
6
Hide whitespace changes
Inline
Side-by-side
blink.py
View file @
bc115be1
...
...
@@ -7,7 +7,9 @@ BLUE = (0, 0, 255)
class
Thing
:
def
__init__
(
self
,
matrix
=
[],
file
=
None
,
max_width
=
12
,
max_height
=
12
):
"""
TODO: fix me: pass a string instead of a list
"""
self
.
max_width
=
max_width
self
.
max_height
=
max_height
...
...
data/blue-pink-10x10.png
0 → 100644
View file @
bc115be1
117 Bytes
data/darkside-12x12.png
0 → 100644
View file @
bc115be1
180 Bytes
data/star-12x12.png
0 → 100644
View file @
bc115be1
159 Bytes
dmxfun.py
View file @
bc115be1
...
...
@@ -26,16 +26,24 @@ def main():
# pink = (128, 128, 0, 128)
# sender[universe].dmx_data = (200, 0, 200)
colors
=
(
pink
,
lightblue
,
blue
)
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
)
# 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)
# 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
()
...
...
readme.md
View file @
bc115be1
...
...
@@ -4,3 +4,6 @@ run tests:
python3 -m unittest -v test
```
## todo
*
Deal with smaller images (e.g. 10x10 to 12x1 2)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment