An USB Inertial Mouse with FreeIMU and Arduino Leonardo in 10 lines of code

Today the Arduino team officially presented the Arduino Leonardo with a video from Massimo Banzi, while it’s been a while that the board has been launched and available for sale.

I really like the Arduino Leonardo and I’m already using it in some projects.. today however, I decided to make a simple little example program which shows the potential of the Arduino Leonardo.

I connected one of my FreeIMU to the Leonardo, wrote a bunch of lines of code and then, I had a simple USB inertial mouse! The code for this example is attached below.

Here is a video demonstration and a little explanation on how it works!
Kudos to the Arduino team for this great board!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top