You are reading a single comment by @Boydy and its replies. Click here to read the full conversation.
  • I had the 3 light issue with this code loaded going from 1v91 -> 1v92 if that helps:

    var kb = require("ble_hid_keyboard");
    var on = false;
    
    function onInit() {
      NRF.setServices(undefined, { hid : kb.report });
      setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50})­;
      flashLED();
    }
    
    function btnPressed() {
      kb.tap(kb.KEY["c"], 0);
    }
    
    var flashLED = function() {
      on = !on;
      LED1.write(on);
      var interval;
      if(on) {
        interval = 5;
      } else {
        interval = 3000;
      }
      setTimeout(flashLED, interval);
    };
    
About

Avatar for Boydy @Boydy started