'What are the differences between the two switches'
That is a good question. I stumbled across that when using setWatch() to detect the Pico button press. My Pico would only recognize BTN1 and not BTN as the docs indicate for digitalRead()
I noticed in the documentation that for the original board both BTN and BTN1 are used. So must be leftover or duplication, such that the two are in fact equal in memory. Don't know. A question for the source designer.
Thought the schematic might help, but is BTN the switch at bottom center?
'there is a changing on Pin C13 from 0V to 3,3V, . . . In this sense, the button must be ok.'
This would indicate that the onboard button is in fact working. So, when you attempt to flash, are you holding down the button as the USB cable is applied and keep holding for at least half a second after the connection is made? and, . . . what do the LEDs do?
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
That is a good question. I stumbled across that when using setWatch() to detect the Pico button press. My Pico would only recognize BTN1 and not BTN as the docs indicate for
digitalRead()
I noticed in the documentation that for the original board both BTN and BTN1 are used. So must be leftover or duplication, such that the two are in fact equal in memory. Don't know. A question for the source designer.
Just checked C13 as you indicated and that page indicates BTN1
and further down the page . . .
Must be leftover documentation as I found the doc with the original reference BTN1:
This is interesting, only BTN1 is referenced:
Thought the schematic might help, but is BTN the switch at bottom center?
This would indicate that the onboard button is in fact working. So, when you attempt to flash, are you holding down the button as the USB cable is applied and keep holding for at least half a second after the connection is made? and, . . . what do the LEDs do?