Example program with the C12832 display and MMA7660 I2C accelerometer of the mbed application shield.

Dependencies:   C12832 MMA7660 mbed

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Tue Apr 01 16:30:14 2014 +0000
Parent:
0:cc9d7d4dfb99
Child:
2:9535cae29d9b
Commit message:
Add x,y to values

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Apr 01 16:27:40 2014 +0000
+++ b/main.cpp	Tue Apr 01 16:30:14 2014 +0000
@@ -26,7 +26,7 @@
     int i=1;
     while(i++) {
         lcd.locate(0,15);
-        lcd.printf("%f, %f   ", MMA.x(), MMA.y());
+        lcd.printf("x: %f, y: %f   ", MMA.x(), MMA.y());
         wait(0.2);
     }
 }
\ No newline at end of file