You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi! As @Sebastian pointed out you should almost be able to do what you want with:

    https://www.espruino.com/BLE+Keyboard

    So something like this:

    var flashing = false;
    
    function btnPressed() {
     if (flashing) {
       flashing = false;
      // stop flashing the LED here
     } else {
       flashing = true;
       // start flashing the LED here
       kb.tap(kb.KEY.M,  kb.MODIFY.SHIFT |  kb.MODIFY.CTRL, function() {
      });
     }
    }
    
    // trigger btnPressed whenever the button is pressed
    setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
    
About

Avatar for Gordon @Gordon started