Changeset - d5986337516f
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 10 years ago 2015-06-13 22:01:36
drewp@bigasterisk.com
ok to set uv to a fraction
Ignore-this: 9f328983eb589c131730a2fc21fa61e6
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/effecteval/effectloop.py
Show inline comments
 
@@ -208,7 +208,7 @@ class ControlBoard(object):
 
        level: 0 to 1
 
        """
 
        command = {0: '\x02', 1: '\x03'}[which]
 
        self._dev.write('\x60' + command + chr(max(0, min(1, level)) * 255))
 
        self._dev.write('\x60' + command + chr(int(max(0, min(1, level)) * 255)))
 
        self._dev.flush()
 

	
 
    def setRgb(self, color):
0 comments (0 inline, 0 general)