diff service/arduinoNode/devices.py @ 990:11fff6301027

support for device code in the idle loop Ignore-this: 7454ba4c9bab3c5393707af7ac91547 darcs-hash:20150708081921-312f9-c48a32a15b9e3ee61d301c0d04603044c91a89dd
author drewp <drewp@bigasterisk.com>
date Wed, 08 Jul 2015 01:19:21 -0700
parents d9bbbd8d86f6
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