12

Dependencies:   mbed C12832 MMA7660

Revision:
7:776375d3aa4d
Parent:
6:8b78adfc4faa
--- a/main.cpp	Mon Nov 02 14:25:24 2015 +0000
+++ b/main.cpp	Wed Dec 08 14:38:12 2021 +0000
@@ -10,12 +10,18 @@
 int main()
 {
     lcd.cls();
-    lcd.locate(0,0);
-    lcd.printf("lecture de l'accelerometre");
 
     while(1) {
-        lcd.locate(0,8);
+        lcd.locate(0,10);
+        lcd.printf("Dessus");
+        lcd.locate(0,20);
+        lcd.printf("Up");
+        lcd.locate(70,0);
         lcd.printf("x=%.2f",MMA.x());
+        lcd.locate(70,10);
+        lcd.printf("y=%.2f",MMA.y());
+        lcd.locate(70,20);
+        lcd.printf("z=%.2f",MMA.z());
         wait(0.2);
     }
 }