Browse Source

comments

master
Andreas Demmelbauer 5 years ago
parent
commit
f31a177eff
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      discobert.py

+ 3
- 1
discobert.py View File

@@ -83,6 +83,7 @@ dmxStartupScenes = [
[120,0,255,255,0,224]
]

# Set a dmx scene by name
def setDmxScene(scene):
# a universe of zeros
cv = [0 for v in range(0, 512)]
@@ -91,6 +92,7 @@ def setDmxScene(scene):
cv[index] = val
dev.send_multi_value(1, cv)

# Set random startup dmx scene
def setStartupDmxScene():
# a universe of zeros
cv = [0 for v in range(0, 512)]
@@ -100,7 +102,7 @@ def setStartupDmxScene():
cv[index] = val
dev.send_multi_value(1, cv)

# Switch betweeb user dmx scenes
def setUserDmxScene():
# loop through scenes
global dmxScene


Loading…
Cancel
Save