Sorry - I'm an idiot. It should have been pinMode(BTN,"input_pulldown") (the button pulls up to 3v when pressed).
pinMode(BTN,"input_pulldown")
Firmware update info is here: http://www.espruino.com/Puck.js#firmware-updates
@Gordon started
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.
Sorry - I'm an idiot. It should have been
pinMode(BTN,"input_pulldown")
(the button pulls up to 3v when pressed).Firmware update info is here: http://www.espruino.com/Puck.js#firmware-updates