var kb = require("ble_hid_keyboard");
NRF.setServices(undefined, { hid : kb.report });
function btnPressed() {
// Send 'spacebar'
kb.tap(kb.KEY[" "], 0, function() {
});
}
// trigger btnPressed whenever the button is pressed
setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
Working on my MAC '' SPACEBAR '' then connect to windows but it don't work on Win10 any tips or comments. Can I program it on Mac and make it work on win10 ?
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.
Hi Gordon ok I find the good code :
Working on my MAC '' SPACEBAR '' then connect to windows but it don't work on Win10 any tips or comments. Can I program it on Mac and make it work on win10 ?