
stary kod z minuleho roka
Revision 4:9100bf042c3b, committed 2017-10-16
- Comitter:
- seyfrid_L
- Date:
- Mon Oct 16 14:48:33 2017 +0000
- Parent:
- 3:8a883ca891f8
- Commit message:
- blbne to. nevypisuje ako ma
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8a883ca891f8 -r 9100bf042c3b main.cpp --- a/main.cpp Mon Oct 16 14:45:50 2017 +0000 +++ b/main.cpp Mon Oct 16 14:48:33 2017 +0000 @@ -39,7 +39,15 @@ begin = t.read_us(); if(begin == 1250) { - read(); + //read(); + terminal.printf("x y z\n\r"); + xAxis = acc.getAccX(); + yAxis = acc.getAccY(); + zAxis = acc.getAccZ(); + + + terminal.printf("%1.2f, %1.2f, %1.2f,\n\r", xAxis, yAxis, zAxis); + t.reset(); } }