Programs carried out using the HMC6352 Digital Compass from Honeywell.