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 :)
ble_hid_controls
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
No problem! All you need to do is put (only) the multimedia keys code on the right-hand side of the IDE:
Then, click the upload button and the
ble_hid_controls
js file will be automatically loaded in for you :)