FXOS8700Q accelerometer library

Dependencies:   MotionSensor

Fork of FXOS8700Q by Jim Carver

Files at this revision

API Documentation at this revision

Comitter:
DamianSan
Date:
Wed Dec 06 13:27:53 2017 +0000
Parent:
9:5553a64d0762
Commit message:
Final version of accelerometer example program for FRDM-K64F evaluation board

Changed in this revision

FXOS8700Q.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/FXOS8700Q.cpp	Wed May 07 18:08:08 2014 +0000
+++ b/FXOS8700Q.cpp	Wed Dec 06 13:27:53 2017 +0000
@@ -25,7 +25,7 @@
 FXOS8700Q_acc::FXOS8700Q_acc(PinName sda, PinName scl, int addr) : m_i2c(sda, scl), m_addr(addr) {
     // activate the peripheral
     uint8_t data[2] = {FXOS8700Q_CTRL_REG1, 0x00};
-    m_i2c.frequency(400000);
+    m_i2c.frequency(100000);
     writeRegs(data, 2);
     data[0] = FXOS8700Q_M_CTRL_REG1;
     data[1] = 0x1F;