Files at this revision

API Documentation at this revision

Comitter:
atommota
Date:
Thu Oct 27 19:43:20 2011 +0000
Parent:
0:0c0be03e887d
Commit message:
Changed default output data rate to 100Hz (from 1000Hz) to reduce noise issues.

Changed in this revision

LIS331HH.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 0c0be03e887d -r 3a46d098c175 LIS331HH.cpp
--- 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);