• Sat 2018.10.06

    '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.

    http://www.espruino.com/Pico

    Just checked C13 as you indicated and that page indicates BTN1

    and further down the page . . .

    Button accessible using the built-in variable BTN

    Must be leftover documentation as I found the doc with the original reference BTN1:

    http://www.espruino.com/Control+LED+with­+Button

    This is interesting, only BTN1 is referenced:

    https://github.com/espruino/Espruino/blo­b/master/boards/PICO_R1_3.py


    https://github.com/espruino/EspruinoBoar­d/raw/master/Pico/pdf/schematic_1v3.pdf

    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?

About

Avatar for Robin @Robin started