I'm not sure I understand exactly what happens with what code and what firmware...
When you upload this code on 1v92:
var kb = require("ble_hid_keyboard");
var on = false;
function onInit() {
NRF.setServices(undefined, { hid : kb.report });
setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
flashLED();
}
function btnPressed() {
kb.tap(kb.KEY["c"], 0);
}
var flashLED = function() {
on = !on;
LED1.write(on);
var interval;
if(on) {
interval = 5;
} else {
interval = 3000;
}
setTimeout(flashLED, interval);
};
did you type save() after uploading? And when you do that, disconnect and try and pair, pairing fails and the light stops blinking? but you don't get the 3 LEDs all lighting up together at any point?
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.
I'm not sure I understand exactly what happens with what code and what firmware...
When you upload this code on 1v92:
did you type
save()
after uploading? And when you do that, disconnect and try and pair, pairing fails and the light stops blinking? but you don't get the 3 LEDs all lighting up together at any point?