Arduino controller for my OOP robotics framework that relies on an HMC5883 magnetic compass.  This is an example sketch to build on.