Hi Gordon, i did try to get this HID example up and running but it does not work for me.
I can toggle the LED if i press the button but the mouse cursor does not move.
var mouse = require("USBMouse");
function toggle() {
on = !on;
digitalWrite(LED1, on);
}
setWatch(function() {
mouse.send(20, 20, mouse.BUTTONS.NONE);
toggle();
}, BTN, {debounce:100, repeat:true, edge:"rising"});
Maybe i am missing something here? Should the pico show up as a mouse device in my system USB device tree?
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, i did try to get this HID example up and running but it does not work for me.
I can toggle the LED if i press the button but the mouse cursor does not move.
Maybe i am missing something here? Should the pico show up as a mouse device in my system USB device tree?
The only relevant device i can find with this call is the STM32 Virtual ComPort.
I am using OS X 10.10.4 and Espruino 1v80