modified version of MAG3110, include getX();getY();and getZ()

Dependents:   202Ahm1

Fork of MAG3110 by Aaron Huang

Revision:
2:fb8024297377
Parent:
1:5a0e7a58d980
Child:
3:bc784c24f3b2
diff -r 5a0e7a58d980 -r fb8024297377 MAG3110.h
--- 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