Hello Simon,
I came back to check this USB mouse demo again. After importing the project, I found both the mbed library and the USBMouse library were both old versions.
The compiler has no problem with updating the USBMouse driver from 601 to 656. However, updating the mbed library from V14 to V19 failed the compilation with
"Cannot open source input file "nvic_api.h": No such file or directory (E5)" in file "USBMouseOld/lib/USBMouse/usbdc.cpp".
Re-import again and it compiled OK with the old V14 library. Would you like to check it out?
By the way, do you have any progress on mbed for HID devices?
Best regards,
Paul
Hi,
Here is a first cut library for emulating a usb mouse. Connect up the D- and D+ and GND of the mbed to a USB connector/lead, plug it in to a PC, and you should be able to pretend to be a mouse.
Here is an example that pulls in the library and demos it:
We'll write up a proper cookbook page soon, but thought i'd post it as I am just about to use it in a demo!
Simon