I would be interested to know if there is a way to make some code run only on first boot, but not on bnt3 long presses
No, I'm afraid not. However given that register is 0 on boot, you could just use one bit of it to store 'I've already run', to figure out if you're running after a BTN3 reboot or not?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
No, I'm afraid not. However given that register is 0 on boot, you could just use one bit of it to store 'I've already run', to figure out if you're running after a BTN3 reboot or not?