changeset 1811:341e03b9b10a

demo device setup Ignore-this: ebff811dcd0096be22c723ed333bb514
author drewp@bigasterisk.com
date Fri, 08 Jun 2018 10:44:50 +0000
parents ad3775ffb622
children a49ad994b467
files light9/collector/device.py
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/collector/device.py	Fri Jun 08 10:43:07 2018 +0000
+++ b/light9/collector/device.py	Fri Jun 08 10:44:50 2018 +0000
@@ -124,8 +124,15 @@
             L9['colorChange']: 0,
             L9['colorSpeed']: 0,
             L9['goboShake']: _8bit(floatAttr(L9['goboShake'])),
-            L9['goboChoose']: choiceAttr(L9['mini15GoboChoice']),
         }
+
+        out[L9['goboChoose']] = {
+            L9['open']: 0,
+            L9['mini15Gobo1']: 10,
+            L9['mini15Gobo2']: 20,
+            L9['mini15Gobo3']: 30,
+            }[deviceAttrSettings.get(L9['mini15GoboChoice'], L9['open'])]
+        
         out[L9['red']], out[L9['green']], out[L9['blue']] = rgbAttr(L9['color'])
         out[L9['xRotation']], out[L9['xFine']] = fine16Attr(L9['rx'], 1/540)
         out[L9['yRotation']], out[L9['yFine']] = fine16Attr(L9['ry'], 1/240)