Mike Fedosiuk
/
FRDM_MMA8451Q
Good posture sensor
Fork of FRDM_MMA8451Q by
Diff: main.cpp
- Revision:
- 8:704b1bb01b14
- Parent:
- 5:bf5becf7469c
- Child:
- 9:6bc7c9ece653
--- a/main.cpp Tue Feb 19 23:46:45 2013 +0000 +++ b/main.cpp Thu May 02 09:10:49 2013 +0000 @@ -11,8 +11,14 @@ while (true) { rled = 1.0 - abs(acc.getAccX()); + printf(" X "); + printf("%f",acc.getAccX()); gled = 1.0 - abs(acc.getAccY()); + printf(" Y "); + printf("%f",acc.getAccY()); bled = 1.0 - abs(acc.getAccZ()); + printf(" Z "); + printf("%f\r",acc.getAccZ()); wait(0.1); } }