You are reading a single comment by @loopMasta and its replies. Click here to read the full conversation.
  • 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?

    ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*'
    

    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

About

Avatar for loopMasta @loopMasta started