HW 4.2.1 submission
Fork of MMA8451Q8b by
Revision 7:ed7e11d269f8, committed 2015-01-28
- Comitter:
- scohennm
- Date:
- Wed Jan 28 21:39:04 2015 +0000
- Parent:
- 6:e0dc3cd59991
- Child:
- 8:993bb9e96a4b
- Commit message:
- Modified for getting access to count data
Changed in this revision
MMA8451Q8.cpp | Show annotated file Show diff for this revision Revisions of this file |
MMA8451Q8.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA8451Q8.cpp Wed Jan 28 20:42:56 2015 +0000 +++ b/MMA8451Q8.cpp Wed Jan 28 21:39:04 2015 +0000 @@ -69,6 +69,7 @@ return (float(getAccAxis(REG_OUT_X_MSB))/gScaling[gChosen]); } + float MMA8451Q::getAccY() { return (float(getAccAxis(REG_OUT_Y_MSB))/gScaling[gChosen]); }
--- a/MMA8451Q8.h Wed Jan 28 20:42:56 2015 +0000 +++ b/MMA8451Q8.h Wed Jan 28 21:39:04 2015 +0000 @@ -76,6 +76,8 @@ * @returns X axis acceleration */ float getAccX(); + + uint16_t igetAccX(); /** * Get Y axis acceleration