Yes, you can. Although by Bluetooth, not USB (as there's not USB port!).
For some reason it doesn't seem to be listed (yet) in the Bluetooth HID docs at
But you can just do:
var mouse = require("ble_hid_mouse"); NRF.setServices(undefined, { hid : mouse.report }); setWatch(function(){ mouse.send(0,0,mouse.BUTTONS.LEFT); // X movement, Y movement, buttons pressed }, BTN, {repeat:true});
@Gordon 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.
Yes, you can. Although by Bluetooth, not USB (as there's not USB port!).
For some reason it doesn't seem to be listed (yet) in the Bluetooth HID docs at
But you can just do: