• Oli and Gordon, the way your wrote isn't working, OLED doesn't start after reset,
    but MaBe advice looks like good one, OLED and all code is starting after reset, but EspruinoIDE return some error in console

    >echo(0);
    Erasing Flash.....
    Writing.........
    Compressed 81600 bytes to 6195
    Checking...
    Done!
    Uncaught ReferenceError: "o" is not defined
     at line 1 col 1
    o(1);
    ^
    

    btw. is this save operation store some data on the MCU every save I make? I mean should I flash espruino to save space on the mcu or during save oparation it will erase all old data and replace them with new one?

  • btw. is this save operation store some data on the MCU every save I make? I mean should I flash espruino to save space on the mcu or during save oparation it will erase all old data and replace them with new one?

    save() writes the current contents of all JSVars to the flash, replacing whatever was previously there. Then it resets the Espruino and runs onInit().

    You can also, instead of saving, send the code and just manually kick off onInit() or the function you'd reference from E.on("init",...).

About

Avatar for bigplik @bigplik started