• Hi, I guess it is a quite easy question. How could I load the same program code after changing the battery? Currently it is reset.

  • Just type save() on the left-hand side after uploading your code - job done!

    Everything should resume where it left off - but if you want to run some code specifically at startup, either do E.on('init', function() { your code }) or create a function called onInit - which will get called automatically, for example:

    function onInit() {
      digitalPulse(LED1,1,1000);
    }
    

    (you can also turn on save on send in the IDE's options, but that's more advanced - I'd just use
    the save() method for now)

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

Not resetting the source code of puck after remove the battery?

Posted by Avatar for MobiTech @MobiTech

Actions