I think this is working OK. Is the advertising interval fixed at around 2 secs?
setWatch( function() { NRF.wake(); LED1.write(true); setTimeout(function() { LED1.write(false); setTimeout(function() { NRF.sleep(); },60*1000); // 1 minute },50); }, BTN, { edge:"rising", debounce: 50, repeat: true //?? } ); NRF.sleep();
The button seems super-sensitive. I checked that the device is reassembled correctly. Picking it up appears to activate it.
@paul_tanner 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.
I think this is working OK. Is the advertising interval fixed at around 2 secs?
The button seems super-sensitive. I checked that the device is reassembled correctly. Picking it up appears to activate it.