MikeTeo.net

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

 

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.

  1. apollo Said,

    hej,
    Thanks for the re-compiling of the library. I had the same problem. But could you please give me a little help how to perform the second step – i dont unterstand exactly how this should work.
    Thank you Apollo

Add A Comment