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, powered by microcosm.
Report a problem