Remark the Espruino prompt at the bottom : after a (detected) BTN1 press, I see the Settings/About/... screen, but no responses to BTN1 anymore. Also the setInterval seems to have stopped ??
When you do pinMode do the 0 and 1 correspond to your actual button presses or are they random?
The 0/1 values follow the BTN1 presses
If you're pressing the button for >1 second then you'd expect the Loading screen to appear though as it tries to reload the default app - could that be it?
I don't think so. I've tried to 'quickly' press BTN1. This is below 1 second, I guess
Also when it's not working could you run getPinMode(BTN1) and...
>
>getPinMode(BTN1)
="input_pulldown"
>
Strange...
I continued my search after I discovered the factory reset function. This should really put everything back to a know state, I suppose. I then installed a simple setWatch :
>
>Bangle.factoryReset()
Erasing Storage Area...
Erase complete.
Writing initial storage contents...
Write complete.
=undefined
>setWatch(function(){print("Yes!")},BTN1, {edge:"rising", debounce:50, repeat:true})
=2
>
// BTN1 presses, no result
>
>
>pinMode(BTN1)
=undefined
>
// BTN1 presses, no result !!!???
Next I uploaded Espruino's RAM, where I found something strange - to me at least :
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... Only the simple pinMode statetment seems to help. Odd...
Remark the Espruino prompt at the bottom : after a (detected) BTN1 press, I see the Settings/About/... screen, but no responses to BTN1 anymore. Also the setInterval seems to have stopped ??
The 0/1 values follow the BTN1 presses
I don't think so. I've tried to 'quickly' press BTN1. This is below 1 second, I guess
Strange...
I continued my search after I discovered the factory reset function. This should really put everything back to a know state, I suppose. I then installed a simple setWatch :
Next I uploaded Espruino's RAM, where I found something strange - to me at least :
Is that '[native code]' part supposed to be there ?