Project Description
The project is a Windows Form that communicates (using XBee S1) to a FezSpider that has one button and a GHIElectronics.XBee module. The Honeywell HMC6343 compass and I2C pullup resistors are located on a GHIElectronics DuinoProto board. I am using Microsoft C# Express.
My project is a test/experiment application for using the HMC6343 compass. The windows form contains a user control serial port based on source I found: Project SerialPort Terminal, Author: Noah Coad, Created: March 2005. There is also graphic user control that displays compass heading, roll, and pitch and other features that cause events at user chosen points on the compass.
The serial communication between the windows form and the FezSpider is by XBee S1's and is based on a unique command structure so it is not a 'normal' protocol. Communication is by strings with a specific format for commands sent to the FezSpider.
NOTE 1 : I am NOT a professional programmer. (I do the best I can with my limited knowledge). I am using C# Express 2010.
NOTE 2: The compass code is what I 'think is correct' NOT what 'IS correct'. Therefore I welcome any input on what is the 'correct' way to do it. I know very little about the compass and the Honeywell documentation leaves me with more questions than answers on the correct way to program it. (At least from my point of view).
I hope the code is useful to somebody.
The zip file contains the complete code as I developed it. Inside the zip is a text file showing a Norton Virus report.. All is well.