Created
April 8, 2020 18:30
-
-
Save gandalf3/45ca1e0530a3afeea46f6bd6818b2f8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import array | |
from ola.ClientWrapper import ClientWrapper | |
def DmxSent(state): | |
wrapper.Stop() | |
universe = 0 | |
data = array.array('B') | |
for n in range(128): | |
data.extend((155, 0, 58, 0)) | |
wrapper = ClientWrapper() | |
dmx_client = wrapper.Client() | |
dmx_client.SendDmx(universe, data, DmxSent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment