Thanks - I just fixed this and it should be in the latest 'cutting edge' builds and 1v96
You can fix this in 1v95 with pinMode(BTN1, "input_pulldown") - the polarity of the button reading has now changed so it reads 1 when pressed, 0 when not.
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.
Thanks - I just fixed this and it should be in the latest 'cutting edge' builds and 1v96
You can fix this in 1v95 with
pinMode(BTN1, "input_pulldown")
- the polarity of the button reading has now changed so it reads 1 when pressed, 0 when not.