Pārlūkot izejas kodu

comments

master
Andreas Demmelbauer pirms 5 gadiem
vecāks
revīzija
f31a177eff
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      discobert.py

+ 3
- 1
discobert.py Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt