• The green led will flash 5 times if you pressed the button when you applied power to the battery. It's the self-test as Robin points out.

    If you hard-reset according to http://www.espruino.com/Puck.js#hard-reset then the Puck's Red LED should flash 5 times and all code will be wiped, so you should be back to normal.

    Please can you try to update your firmware as described in http://www.espruino.com/Puck.js#firmware-updates ? That would be the first place to debug power usage issues.

    I notice that the code itself that you uploaded seems broken (for instance notify is not a function so would create an error on just the third line), so if you uploaded you wouldn't expect that to work.

    Also, if you uploaded 'direct to flash' then the save() you added at the end would actually cause a reboot loop that'd stop the device working until you cleared out saved code. I guess that could be an issue?

About

Avatar for Gordon @Gordon started