The H48C Library for H48C 3-axis sensor by parallax
Download here: H48C version 1.0
Put the H48C folder in your Arduino "libraries".
In the Arduino IDE, create a new sketch (or open one) and
select from the menubar "Sketch->Import Library->H48C".
Once the library is imported, a "#include H48C.h" line will appear at the top of your Sketch.
The schematic of the H48C has 6 pins. 5 are used with the Arduino. The White dot on the module is located next to pin 1. Here is the Pin descriptions:
This is the setup construct. The pin data is required.
This returns the current Gravitational value for the X axis. Normal values range from - 300 to 0 to + 300. Normal G value will be 100.
This returns the current Gravitational value for the Y axis. Normal values range from - 300 to 0 to + 300. Normal G value will be 100.
This returns the current Gravitational value for the Z axis. Normal values range from - 300 to 0 to + 300. Normal G value will be 100.
1.0 2011/09/27 Initial Release
Dan0nator daniel.e.mccclain@gmail.com