MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for May, 2009

The UsbMouse library from arduino.nl doesn’t seem to compile correctly in my Arduino 0015. I have modified the package to resolve the compilation issues and repackaged it.

  1. Simply uncompress the new library in your <arduino-folder>/hardware/libraries.
  2. Then go to the UsbMouse folder and run:
    avr-g++  -Wall -Os -I. -DUSB_CFG_CLOCK_KHZ=16000  -mmcu=atmega168  -c usbdrvasm.S  -c usbdrv.c

    Modify the above command as needed for the clock frequency for your arduino board.

Download the re-packaged Usbmouse library.