@jm, as you may have discovered, the onboard button may be suspect. I just tried this on my Pico and either works for me. Can you try the BTN test again with BTN1 for comparison please.
digitalRead(BTN) vs digitalRead(BTN1)
Both worked for me. Worth a try. . . .
ref #16: ' The same with cd. I think, the button must be ok'
In #16 it seemed you were able to get voltage across the button, so is it possible the button is just spongy? There are many times it doesn't feel like contact is made, so just have to try again. Have you tried a fingernail or a match stick/toothpick. I find the back edge of a plastic knife is sometimes needed. Do you feel the detent 'click' when using a fingernail?
As @Gordon explained in #15 above, are you able to manually jumper the button and get the above digitalRead() to work? If so, are you able to flash that way?
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.
Sat 2018.10.06
@jm, as you may have discovered, the onboard button may be suspect. I just tried this on my Pico and either works for me. Can you try the BTN test again with BTN1 for comparison please.
Both worked for me. Worth a try. . . .
In #16 it seemed you were able to get voltage across the button, so is it possible the button is just spongy? There are many times it doesn't feel like contact is made, so just have to try again. Have you tried a fingernail or a match stick/toothpick. I find the back edge of a plastic knife is sometimes needed. Do you feel the detent 'click' when using a fingernail?
As @Gordon explained in #15 above, are you able to manually jumper the button and get the above
digitalRead()
to work? If so, are you able to flash that way?