HW-6.1
Fork of MMA8451Q by
Revision 13:0155b9a9851e, committed 2017-02-22
- Comitter:
- mireyarod23
- Date:
- Wed Feb 22 05:45:05 2017 +0000
- Parent:
- 12:e54564bbb2eb
- Commit message:
- Stuck
Changed in this revision
MMA8451Q.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e54564bbb2eb -r 0155b9a9851e MMA8451Q.cpp --- a/MMA8451Q.cpp Wed Feb 22 05:44:40 2017 +0000 +++ b/MMA8451Q.cpp Wed Feb 22 05:45:05 2017 +0000 @@ -55,18 +55,18 @@ MMA8451Q::~MMA8451Q() { } -uint8_t MMA8451Q::getGLimit(uint8_t regData) -{ - acc.getGLimit(); - acc.readRegs(XYZ_DATA_CFG, ®Data, 1); - sprintf(lcdData, "%d", regData); - LCDMess(lcdData, BLINKTIME); - acc.readRegs(REG_WHO_AM_I, ®Data, 1); - springf(lcdData, "%d", regData); - LCDMess(lcdData, BLINKTIME); - - return regDate -} +//uint8_t MMA8451Q::getGLimit(uint8_t regData) +//{ +// acc.getGLimit(); +// acc.readRegs(XYZ_DATA_CFG, ®Data, 1); +// sprintf(lcdData, "%d", regData); +// LCDMess(lcdData, BLINKTIME); +// acc.readRegs(REG_WHO_AM_I, ®Data, 1); +// springf(lcdData, "%d", regData); +// LCDMess(lcdData, BLINKTIME); +// +// return regDate +//} uint8_t MMA8451Q::getWhoAmI() { uint8_t who_am_i = 0;