The IDE just connects using the 'Nordic UART' bluetooth characteristics that Espruino provides, and sends character data over the REPL (which is basically what you see on the left-hand side of the IDE).
So if you want to write a program to flash, you need to generate the JavaScript to write that in, which might look like:
You need to put a newline after it (to cause it to be executed) and it helps to put char code 16 right before, and that tells Espruino not to 'echo' the line back to you, which can slow things down.
Actually creating the code to do that can be a bit of a pain, so we have a tool (basically the Espruino IDE as a command-line app): https://www.npmjs.com/package/espruino
Rather than connecting, it can spit out a file which is the commands which you should send in order to upload the code. See Not Connecting in https://www.npmjs.com/package/espruino
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.
The IDE just connects using the 'Nordic UART' bluetooth characteristics that Espruino provides, and sends character data over the REPL (which is basically what you see on the left-hand side of the IDE).
So if you want to write a program to flash, you need to generate the JavaScript to write that in, which might look like:
You need to put a newline after it (to cause it to be executed) and it helps to put char code 16 right before, and that tells Espruino not to 'echo' the line back to you, which can slow things down.
Actually creating the code to do that can be a bit of a pain, so we have a tool (basically the Espruino IDE as a command-line app): https://www.npmjs.com/package/espruino
Rather than connecting, it can spit out a file which is the commands which you should send in order to upload the code. See
Not Connecting
in https://www.npmjs.com/package/espruinoThe command can look a bit like:
Some more info on doing the connection itself is at https://www.espruino.com/Interfacing#bluetooth-le