Added functions to independently get accelerometer and magnetometer data
Fork of LSM303DLHC by
Diff: LSM303DLHC.cpp
- Revision:
- 7:6c74e3e5e105
- Parent:
- 6:5fe568883921
diff -r 5fe568883921 -r 6c74e3e5e105 LSM303DLHC.cpp --- a/LSM303DLHC.cpp Mon Apr 27 16:49:03 2015 +0000 +++ b/LSM303DLHC.cpp Sat May 09 22:27:29 2015 +0000 @@ -173,7 +173,6 @@ /* -- mag --- */ reg_v = 0; - //leave line below commented for 0.75Hz data output rate (less noise) reg_v |= 0x04 << 2; /* Minimum data output rate = 15Hz */ write_reg(addr_mag,CRA_REG_M,reg_v);