That project is about to build a head tracking device from an Teensy (Arduino clone) and an IMU Breakout (accelerometer + magnetometer).
You’ll find more informations on hackaday project page.
To compile,you’ll need :
You can test the device with jstest-gtk.