Mercurial > code > home > repos > homeauto
diff service/arduinoNode/arduinoNode.py @ 192:6c6897a139da
support for pwm board
Ignore-this: 4bf59699c590c75c79e6ae72d719343a
author | drewp@bigasterisk.com |
---|---|
date | Sun, 30 Aug 2015 01:19:29 -0700 |
parents | ad20e5cb4feb |
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();