I've finally started playing with my Espruino, going through a few of the tutorials and trying a few things out.
I'm having trouble replicating the BTN1 functionality on a external/extra button. I've connected a press button between pin C1 and 3.3v and my test code is
A press and release of BTN1 results in the logging of a press and release. A press of the button on C1 only results in the logging of the press.
If I take the debounce parameter off the C1 setwatch command, I get a continual stream of "Release!" log messages.
Any hints as to what I'm missing would be appreciated
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.
I've finally started playing with my Espruino, going through a few of the tutorials and trying a few things out.
I'm having trouble replicating the BTN1 functionality on a external/extra button. I've connected a press button between pin C1 and 3.3v and my test code is
A press and release of BTN1 results in the logging of a press and release. A press of the button on C1 only results in the logging of the press.
If I take the debounce parameter off the C1 setwatch command, I get a continual stream of "Release!" log messages.
Any hints as to what I'm missing would be appreciated