Mercurial > code > home > repos > homeauto
diff service/arduinoNode/devices.py @ 185:2161c71c7b02
support for device code in the idle loop
Ignore-this: 7454ba4c9bab3c5393707af7ac91547
author | drewp@bigasterisk.com |
---|---|
date | Wed, 08 Jul 2015 01:19:21 -0700 |
parents | f81c4d3d774b |
children | 57e6d328d45b |
line wrap: on
line diff
--- a/service/arduinoNode/devices.py Thu Jun 18 01:45:07 2015 -0700 +++ b/service/arduinoNode/devices.py Wed Jul 08 01:19:21 2015 -0700 @@ -75,13 +75,20 @@ return [] def generateGlobalCode(self): - """C code to emit in the global section""" + """C code to emit in the global section. + + Note that 'frame' (uint8) is available and increments each frame. + """ return '' def generateSetupCode(self): """C code to emit in setup()""" return '' + def generateIdleCode(self): + """C code to emit in the serial-read loop""" + return '' + def generatePollCode(self): """ C code to run a poll update. This should Serial.write its output