reading from 6 sensors and packaging the data
Diff: LSM303D.cpp
- Revision:
- 1:3948b63ff4bd
- Parent:
- 0:f186dd92c836
- Child:
- 2:171076b97de0
--- a/LSM303D.cpp Tue Aug 26 13:20:01 2014 +0000 +++ b/LSM303D.cpp Thu Mar 19 20:52:09 2015 +0000 @@ -70,7 +70,7 @@ //CTRL1 cs=0; //talk to compass mspi.write(0x20); - mspi.write(0x57); //50Hz, continuous update, all axes enabled + mspi.write(0x67); //50Hz, continuous update, all axes enabled cs=1; //done talking @@ -86,7 +86,7 @@ //CTRL5 cs=0; //talk to compass mspi.write(0x24); - mspi.write(0x70); //temperature disabled, high resolution, 50 Hz, int2 disable, int1 disabled + mspi.write(0x74); //temperature disabled, high resolution, 100 Hz, int2 disable, int1 disabled cs=1; //done talking