comparison 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
comparison
equal deleted inserted replaced
184:e052416a2290 185:2161c71c7b02
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