KBrat-SSD645-HW-8_1_MMA8451Q8
Fork of MMA8451Q8 by
Diff: MMA8451Q8.h
- Revision:
- 9:1e7f9d65ad29
- Parent:
- 8:65da360cf088
--- a/MMA8451Q8.h Mon Mar 06 17:39:43 2017 +0000 +++ b/MMA8451Q8.h Wed Mar 08 03:59:56 2017 +0000 @@ -97,18 +97,23 @@ * @param res array where acceleration data will be stored */ void getAccAllAxis(float * res); - + int16_t getAccAxis(uint8_t addr); //remove from private and make public I2C m_i2c; int m_addr; + int gChosen; + + /**allow user to set max g's**/ + void setGLimit(int gSelect); + void standbyMode(); + void activeMode(); void readRegs(int addr, uint8_t * data, int len); void writeRegs(uint8_t * data, int len); - void setGLimit(); - void standbyMode(); - void activeMode(); + + private: - int16_t getAccAxis(uint8_t addr); + };