Are you definitely using the RAK5010? And with the latest firmware?
Pin D16 isn't brought out to any IO pins on the edge, it appears to be connected to the interrupt line of one of the sensors, so to use it you'd need to first configure the sensor to be on and output an IRQ signal, and you may even need to put the pin into pullup state.
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, What you're doing looks ok.
Are you definitely using the RAK5010? And with the latest firmware?
Pin D16 isn't brought out to any IO pins on the edge, it appears to be connected to the interrupt line of one of the sensors, so to use it you'd need to first configure the sensor to be on and output an IRQ signal, and you may even need to put the pin into pullup state.