Thanks @Gordon! I just tried with
var controls = require("ble_hid_controls"); NRF.setServices(undefined, { hid : controls.report }); function btnPressed() { controls.playpause(); } setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
and it works like charm!
@Jean-Philippe_Rey 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.
Thanks @Gordon!
I just tried with
and it works like charm!