Do you have pullup/down resistors on SWITCH1/2? If not I'd change the pinmode to input_pullup/down.
setWatch itself adds maybe 10uA, however if the input is changing then it'll cause the device to wake up, using a bunch of power. If there's no pullup/down that'd definitely cause noise to come in and wake it up.
Out of interest what are you using on your board? I imagine it's not the nRF52 directly - is it a module of some kind?
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.
Do you have pullup/down resistors on SWITCH1/2? If not I'd change the pinmode to
input_pullup/down
.setWatch itself adds maybe 10uA, however if the input is changing then it'll cause the device to wake up, using a bunch of power. If there's no pullup/down that'd definitely cause noise to come in and wake it up.
Out of interest what are you using on your board? I imagine it's not the nRF52 directly - is it a module of some kind?