ahah! Yes the IDE was holding on to the connection.
So now it connects with 1v92. And I am now trying the HID software from your example:
var kb = require("ble_hid_keyboard"); NRF.setServices(undefined, { hid : kb.report }); function btnPressed() { // Send 'a' kb.tap(kb.KEY.A, 0, function() { // Followed by capital 'A' kb.tap(kb.KEY.A, kb.MODIFY.SHIFT); }); } // trigger btnPressed whenever the button is pressed setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
NB the device is not appearing in the list of keyboard devices
1 Attachment
@Boydy 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.
ahah! Yes the IDE was holding on to the connection.
So now it connects with 1v92. And I am now trying the HID software from your example:
NB the device is not appearing in the list of keyboard devices
1 Attachment