Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA8451Q mbed TextLCD
Fork of FRDM_MMA8451Q by
Revision 11:fa2577154dfd, committed 2014-07-19
- Comitter:
- mderrant
- Date:
- Sat Jul 19 03:06:41 2014 +0000
- Parent:
- 9:ad98499b2dc5
- Commit message:
- ACELEROMETRO Y LCD
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jul 19 02:56:47 2014 +0000
+++ b/main.cpp Sat Jul 19 03:06:41 2014 +0000
@@ -38,9 +38,9 @@
lcd.clear();
lcd.setCursor(cur,0);
- lcd.printf(" X Y Z" );
- lcd.setCursor(0,1);
- lcd.printf("%1.2f, %1.2f, %1.2f", x, y, z);
+ lcd.printf(" X Y Z" );
+ lcd.setCursor(0,1);
+ lcd.printf("%1.2f %1.2f %1.2f", acelerometro.getAccX(), acelerometro.getAccY(), acelerometro.getAccZ());
