From f31a177eff4541ea66d2a3e0305857afe968347f Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Tue, 16 Apr 2019 15:32:54 +0200 Subject: [PATCH] comments --- discobert.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discobert.py b/discobert.py index d4a9648..2ffb2b9 100644 --- a/discobert.py +++ b/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