• 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.

About

Avatar for paul_tanner @paul_tanner started