comparison 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
comparison
equal deleted inserted replaced
989:065fc9e07c10 990:11fff6301027
73 def generateArduinoLibs(self): 73 def generateArduinoLibs(self):
74 """names of libraries for the ARDUINO_LIBS line in the makefile""" 74 """names of libraries for the ARDUINO_LIBS line in the makefile"""
75 return [] 75 return []
76 76
77 def generateGlobalCode(self): 77 def generateGlobalCode(self):
78 """C code to emit in the global section""" 78 """C code to emit in the global section.
79
80 Note that 'frame' (uint8) is available and increments each frame.
81 """
79 return '' 82 return ''
80 83
81 def generateSetupCode(self): 84 def generateSetupCode(self):
82 """C code to emit in setup()""" 85 """C code to emit in setup()"""
86 return ''
87
88 def generateIdleCode(self):
89 """C code to emit in the serial-read loop"""
83 return '' 90 return ''
84 91
85 def generatePollCode(self): 92 def generatePollCode(self):
86 """ 93 """
87 C code to run a poll update. This should Serial.write its output 94 C code to run a poll update. This should Serial.write its output