Maybe a lack of memory to run, or free space in which to save your program. There is quite a lot going on.
I would start by removing the save() instruction and seeing if I can upload the sketch. Then I'd try to save the sketch by keying save() in the console on left of Wen IDE, and if both ok, try run the sketch - and for this it is useful to wrap all your init code in a named function you can specify as the E.on("init", ...) callback, instead of using anonymous function. You can them comment out, and call your init function from the console.
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.
Maybe a lack of memory to run, or free space in which to save your program. There is quite a lot going on.
I would start by removing the
save()
instruction and seeing if I can upload the sketch. Then I'd try to save the sketch by keyingsave()
in the console on left of Wen IDE, and if both ok, try run the sketch - and for this it is useful to wrap all your init code in a named function you can specify as theE.on("init", ...)
callback, instead of using anonymous function. You can them comment out, and call your init function from the console.