Skip to content

Instantly share code, notes, and snippets.

@hgdeoro
Created June 8, 2011 02:12
Show Gist options
  • Save hgdeoro/1013650 to your computer and use it in GitHub Desktop.
Save hgdeoro/1013650 to your computer and use it in GitHub Desktop.
Ejemplo: ArduinoProxy.getFreeMemory()
class ArduinoProxy(object):
(...)
def getFreeMemory(self):
val = self.send_cmd("_gFM")
return val
getFreeMemory.arduino_function_name = '_gFM'
getFreeMemory.arduino_code = """
void _gFM() {
int mem;
mem = freeMemory();
send_int_response(mem);
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment