Store code during power-off

Posted on
  • How do I store my code during power-off, and run on every power-up? It seems my code only runs after sending via USB.

  • I think this is probably an FAQ and in the Quick Start guide, but type save() on the left-hand side :)

    Once done everything is reloaded as it was, but sometimes you want to do stuff when the board powers on, so you need to put it in a function called onInit()

  • Thanks, Gordon. I did go through the FAQ's, it's not there. I might have looked through the quick start guide, can't remember, but you're right that it's explained there.

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

Store code during power-off

Posted by Avatar for CriscoCrusader @CriscoCrusader

Actions