Ivone Sima
/
Accelerometer_exampleLab4
state led / position change
Fork of Accelerometer_example by
Diff: main.cpp
- Revision:
- 2:18e28291bc02
- Parent:
- 0:a1caba5c4e48
- Child:
- 3:ca2e99f6b193
diff -r 31f0f53b08bd -r 18e28291bc02 main.cpp --- a/main.cpp Wed Feb 07 16:56:55 2018 +0000 +++ b/main.cpp Thu Feb 15 18:28:42 2018 +0000 @@ -27,6 +27,21 @@ gled = 1.0f - abs(y); bled = 1.0f - abs(z); Thread::wait(300); - pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z); + + + + pc.printf("X:flat ,Y:right ,Z:left\n", x,y,z); + + + // if (x> 0){ + + // pc.printf("X:flat ,Y:right ,Z:left\n", x,y,z); + + //} + //pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z); + + + + } }