Mercurial > code > home > repos > homeauto
diff service/arduinoNode/arduinoNode.py @ 997:b24885725f59
support for pwm board
Ignore-this: 4bf59699c590c75c79e6ae72d719343a
darcs-hash:20150830081929-312f9-45f7134e807c5de2bb0dad13a5a9d1fa032bf471
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 30 Aug 2015 01:19:29 -0700 |
parents | f72068e9d9d8 |
children | 9c8674329a13 |
line wrap: on
line diff
--- a/service/arduinoNode/arduinoNode.py Sun Aug 30 01:18:46 2015 -0700 +++ b/service/arduinoNode/arduinoNode.py Sun Aug 30 01:19:29 2015 -0700 @@ -187,7 +187,7 @@ raise NotImplementedError if gen: - generated[attr] += '// for %s\n%s\n' % (dev.uri, gen) + generated[attr] += '// for %s\n%s\n' % (dev.uri, gen.strip()) code = ''' %(includes)s @@ -206,7 +206,7 @@ // this slowdown is to spend somewhat less time PWMing, to reduce // leaking from on channels to off ones (my shift register has no // latching) - if (micros() < lastFrame + 128) { + if (micros() < lastFrame + 80) { return; } lastFrame = micros();