Hi - that's to be expected - the button is actually connected to pin D0 - so BTN == D0. It's just that when you print it, Espruino chooses to print D0 and not BTN to the screen
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.
Hi - that's to be expected - the button is actually connected to pin D0 - so
BTN == D0
. It's just that when you print it, Espruino chooses to printD0
and notBTN
to the screen