Literally just change the python command variable to:
command
command = "\x03\x10yourFunctionName();\n"
Apart from the first 2 chars you're just sending JS, so if you want to send arguments it's as easy as "\x03\x10yourFunctionName(1,2,3,'foobar');\n"
"\x03\x10yourFunctionName(1,2,3,'foobar');\n"
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Literally just change the python
command
variable to:Apart from the first 2 chars you're just sending JS, so if you want to send arguments it's as easy as
"\x03\x10yourFunctionName(1,2,3,'foobar');\n"