HW 4.2.1 submission
Fork of MMA8451Q8b by
Diff: MMA8451Q8.cpp
- Revision:
- 7:ed7e11d269f8
- Parent:
- 5:5a7293378401
- Child:
- 8:993bb9e96a4b
--- 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]); }