A basic library for the FXOS8700Q combination accelerometer / magnetometer
Dependents: K64F_eCompass_LCD Hello_FXOS8700Q rtos_compass K64F_eCompass ... more
This library supports the 6 axis combination Accelerometer / Magnetometer. Functions are provided to retrieve data in raw 16 bit signed integers or unit converted G's and micro-teslas
Diff: FXOS8700Q.h
- Revision:
- 9:5553a64d0762
- Parent:
- 6:cdc362f08339
diff -r 52116f8fb3da -r 5553a64d0762 FXOS8700Q.h --- a/FXOS8700Q.h Sat Apr 26 01:36:41 2014 +0000 +++ b/FXOS8700Q.h Wed May 07 18:08:08 2014 +0000 @@ -139,7 +139,9 @@ private: I2C m_i2c; int m_addr; - + char sbuf[12]; + int sstatus; + void writeRegs(uint8_t * data, int len); int16_t getAccAxis(uint8_t addr);