LSM303DLHC Full Driver: Readings For Acc, Mag and Temp; Class Method for frequently-used 13 sensor parameters; Class Method to direct modify registers; Support Calibration (offset+scale);

Dependencies:   mbed

Revision:
2:192a6c228644
Parent:
1:e68ce5025dad
Child:
3:522d01930e6a
diff -r e68ce5025dad -r 192a6c228644 LSM303DLHC.h
--- a/LSM303DLHC.h	Tue Jun 07 06:20:17 2016 +0000
+++ b/LSM303DLHC.h	Tue Jun 07 06:25:44 2016 +0000
@@ -76,7 +76,7 @@
              //        100Hz     200Hz      400Hz     1620Hz@LP 1344Hz@NM/5376HZ@LP
         void ACtrl(ACC_ODR cmd); 
         // ACC AXIS SEL
-        enum ACC_AXIS { NONE = 0, X = 1, Y = 2, XY = 3, Z = 4, XZ = 5, XY = 6, XYZ = 7 };
+        enum ACC_AXIS { NONE = 0, X = 1, Y = 2, XY = 3, Z = 4, XZ = 5, YZ = 6, XYZ = 7 };
         void ACtrl(ACC_AXIS cmd);
         
         //// CTRL_REG2_A (21h)