• No problem! All you need to do is put (only) the multimedia keys code on the right-hand side of the IDE:

    var controls = require("ble_hid_controls");
    NRF.setServices(undefined, { hid : controls.report });
    
    // Play/stop music
    controls.playpause();
    
    // Send 'volume up' twice
    controls.volumeUp(function() {
      controls.volumeUp();
    });
    

    Then, click the upload button and the ble_hid_controls js file will be automatically loaded in for you :)

About

Avatar for Gordon @Gordon started