Sat 2017.04.15
Although my experience is with the Pico, my guess is that any GPIO pin will work. The software function you are after is digitalRead() http://www.espruino.com/Reference#l__global_digitalRead
Use this tutorial to garner insight. Wire Loop Game
One wire to ground. The other through a 10K to the GPIO pin. Or rely on the internal pull-up.
@Robin 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.
Sat 2017.04.15
Although my experience is with the Pico, my guess is that any GPIO pin will work. The software function you are after is digitalRead() http://www.espruino.com/Reference#l__global_digitalRead
Use this tutorial to garner insight. Wire Loop Game
One wire to ground. The other through a 10K to the GPIO pin. Or rely on the internal pull-up.