simple explanation how to save code that espruino run on start?

Posted on
Page
of 2
Prev
/ 2
  • I imagine it could be an ESP8266 board, with an old version of Espruino?

    Newer versions shouldn't need you to call pinMode

  • @DrAzzy thanks for the tip it has worked when I called the pinMode beforehand.

    Hi @Gordon, it seems also newer versions need pinMode call because I have a nodeMCU ESP-12E with espruino_1v85

  • Ahh, ok, thanks - I need to release a new version then. There are 'nightly' builds which most people use it seems, and I think those have it fixed.

  • @Filip (post #24), you just go lucky... it is still a bad idea to start timers in the root level / level 0... you are saving the timer in the state it was (and luckily, @Gordon wrote the power-up of a saved state to restart the timers...). If your code is a bit more complicated, it may not even upload properly. (Sorry for the 'delayed' response).

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

simple explanation how to save code that espruino run on start?

Posted by Avatar for bigplik @bigplik

Actions