Allowed for the choosing the g-range of the accelerometer. Scaling also tracks choice so units and values are correct
Dependents: LCD_punch_mtr_8_v5 LCD_punch_mtr_8_v5
Fork of MMA8451Q by
Revision 6:e0dc3cd59991, committed 2015-01-28
- Comitter:
- scohennm
- Date:
- Wed Jan 28 20:42:56 2015 +0000
- Parent:
- 5:5a7293378401
- Commit message:
- Integer counts add
Changed in this revision
MMA8451Q8.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA8451Q8.h Thu Dec 11 00:36:30 2014 +0000 +++ b/MMA8451Q8.h Wed Jan 28 20:42:56 2015 +0000 @@ -98,7 +98,8 @@ */ void getAccAllAxis(float * res); - + int16_t getAccAxis(uint8_t addr); + I2C m_i2c; int m_addr; int gChosen; @@ -111,7 +112,7 @@ void writeRegs(uint8_t * data, int len); private: - int16_t getAccAxis(uint8_t addr); + };