Explore Labs' 9 Degrees of Freedom Inertial Measurement Unit with MPU-6150 and HMC5883L and Auto Voltage Level Shifting
To work with the Code, you need the libraries installed at the right place. Following libraries are required to be copied inside the libraries folder:
I2Cdev - by Jeff Rowberg
MPU6050 - The library for MPU-6050 and MPU-6150 are Code Compatible - by Jeff Rowberg
HMC5883L - by Jeff Rowberg