https://github.com/adafruit/Adafruit_HMC5883_Unified
This library is designed for the HMC5883 magnetometer/compass.
It is specifically created to work with the Adafruit HMC5883 Breakout.
The device uses I2C for communication, requiring just two pins for interfacing.
Adafruit dedicates significant time and resources to providing this open-source code. Please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Kevin Townsend for Adafruit Industries.
This library is released under the BSD license. All text above must be included in any redistribution.