The code is provided under the MIT license please use, edit, change, and share. 

The HMC5883L library has been modified for use with this example and is provided under the GPL license.

Before loading the HMC5883L example code, or even opening the arduino software, place the HMC5883L folder in your arduino library.

-

////ARDUINO LIBRARY LOCATION////
On your Mac:: In (home directory)/Documents/Arduino/libraries
On your PC:: My Documents -> Arduino -> libraries
On your Linux box: (home directory)/sketchbook/libraries
