Mercurial > code > home > repos > light9
changeset 1260:d5986337516f
ok to set uv to a fraction
Ignore-this: 9f328983eb589c131730a2fc21fa61e6
author | drewp@bigasterisk.com |
---|---|
date | Sat, 13 Jun 2015 22:01:36 +0000 |
parents | 16e68041e675 |
children | 0334563c94b6 |
files | light9/effecteval/effectloop.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/effecteval/effectloop.py Sat Jun 13 21:54:24 2015 +0000 +++ b/light9/effecteval/effectloop.py Sat Jun 13 22:01:36 2015 +0000 @@ -208,7 +208,7 @@ 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):