Updated OCE 360 Assignment 4
Dependents: Barros_Assignment4
Diff: MMA8452Q.h
- Revision:
- 2:1d10bcf263d2
- Parent:
- 0:098406435cd2
--- a/MMA8452Q.h Fri Nov 17 04:09:39 2017 +0000 +++ b/MMA8452Q.h Thu Dec 07 23:20:41 2017 +0000 @@ -17,6 +17,7 @@ #define REG_WHO_AM_I 0x0D #define REG_XYZ_DATA_CFG 0x0E #define REG_CTRL_REG1 0x2A +#define REG_FF_MT_CFG 0x15 // WHO_AM_I check #define FACTORY_ID 0x2A @@ -53,6 +54,8 @@ void setODR(uint8_t odr); void standby(); void active(); + void standby1(); + void active1(); float readX(); float readY(); float readZ();