瀏覽代碼

comments

master
Andreas Demmelbauer 5 年之前
父節點
當前提交
f31a177eff
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      discobert.py

+ 3
- 1
discobert.py 查看文件

@@ -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…
取消
儲存