An USB Inertial Mouse with FreeIMU and Arduino Leonardo in 10 lines of code
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!