Diff: LIS331HH.cpp
- Revision:
- 1:3a46d098c175
- Parent:
- 0:0c0be03e887d
--- a/LIS331HH.cpp Fri Jul 01 21:07:48 2011 +0000 +++ b/LIS331HH.cpp Thu Oct 27 19:43:20 2011 +0000 @@ -37,8 +37,9 @@ //char rx[1]; tx[0] = CTRL_REG_1; //CTRL_REG_1 [00111111] / [0x3F] to power up, set output rate to 1000Hz, and enable all 3 axis. + //CTRL_REG_1 [00101111] / [0x2F] to power up, set output rate to 100Hz, and enable all 3 axis. //CTRL_REG_1 [ABCDEFGH] ABC=PowerMode, DE=OutputDataRate, F=Zenable, G=Yenable, H=XEnable - tx[1] = 0x3F; + tx[1] = 0x2F; i2c_.write((LIS331_I2C_ADDRESS << 1) & 0xFE, tx, 2);