This E.setBootupCode("...") would have to happen in a separate step and has to trigger a reset(). If part of a 'sketch' in IDE's edit pane vs. executed from the console, it would be kind of 'transient' like the require("literalName") - forgotten after execute and not saved as literal part of the uploaded code,... and fort to make it simple for the upload, it would have to be the first thing in the 'sketch'.
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.
This
E.setBootupCode("...")
would have to happen in a separate step and has to trigger areset()
. If part of a 'sketch' in IDE's edit pane vs. executed from the console, it would be kind of 'transient' like the require("literalName") - forgotten after execute and not saved as literal part of the uploaded code,... and fort to make it simple for the upload, it would have to be the first thing in the 'sketch'.