Simple library for MAG3110 magenetometer as built into Avnet Wi-Go module
Fork of MAG3110 by
Diff: MAG3110.h
- Revision:
- 2:fb8024297377
- Parent:
- 1:5a0e7a58d980
- Child:
- 3:bc784c24f3b2
--- a/MAG3110.h Fri May 24 20:04:48 2013 +0000 +++ b/MAG3110.h Fri May 24 20:08:12 2013 +0000 @@ -75,14 +75,6 @@ class MAG3110 { -private: - int _i2c_address; - I2C _i2c; - Serial *_pc; - bool _debug; - int _avgX, _avgY; - - public: /** * MAG3110 constructor @@ -136,5 +128,13 @@ * @param maxY maximum value for Y range */ void setCalibration(int minX, int maxX, int minY, int maxY); + +private: + int _i2c_address; + I2C _i2c; + Serial *_pc; + bool _debug; + int _avgX, _avgY; + }; #endif