• Hi!

    I've been trying to use my Puck.js to emulate Lenovo keyboard microphone on/off button (f4), but cannot get it to work. I suppose that I need to somehow first tell the computer that my Puck.js is a lenovo keyboard and then send a right code.

    I can see from the lenovo drivers that the code I should send is "0x00f1".
    https://coral.googlesource.com/linux-imx/+/refs/tags/4-2/drivers/hid/hid-lenovo.c

    Any ideas regarding this?

    Here's my current code:

    function p(c,cb) {
      NRF.sendHIDReport(c, function() {
        NRF.sendHIDReport(0, cb);
      });
    }
    
    setWatch(function(e) {
      // Measure length of the press
      var len = e.time - e.lastTime;
    
      p(0x00f1,function() {
        print('Done');
      });
    
      digitalPulse(LED3,1,100);
    
    }, BTN, { edge:"falling",repeat:true,debounce:50});
    
About

Avatar for user121862 @user121862 started