This is a library example for the HMC5883 magnentometer/compass Designed specifically to work wit...

arduino