Create Arduino Code

Edited code.
Original from your Arduino sketchbook > libraries > AP_Compass > examples