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:
Fri Jul 25 10:51:34 2014 +0000
Parent:
2:9535cae29d9b
Child:
4:977416656757
Commit message:
Update mbed library to the latest revision

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
MMA7660.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/C12832.lib	Tue Apr 01 16:32:39 2014 +0000
+++ b/C12832.lib	Fri Jul 25 10:51:34 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/components/code/C12832/#1c3011afe95d
+http://mbed.org/teams/components/code/C12832/#03069e3deaa4
--- a/MMA7660.lib	Tue Apr 01 16:32:39 2014 +0000
+++ b/MMA7660.lib	Fri Jul 25 10:51:34 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/components/code/MMA7660/#a8e20db7901e
+http://mbed.org/teams/components/code/MMA7660/#05babde28906
--- a/main.cpp	Tue Apr 01 16:32:39 2014 +0000
+++ b/main.cpp	Fri Jul 25 10:51:34 2014 +0000
@@ -24,7 +24,8 @@
     int i=1;
     while(i++) {
         lcd.locate(0,15);
-        lcd.printf("x: %f, y: %f   ", MMA.x(), MMA.y());
-        wait(0.2);
+        lcd.printf("x: %f", MMA.x());
+        lcd.printf("y: %f", MMA.y());
+        wait(1.0);
     }
 }
\ No newline at end of file
--- a/mbed.bld	Tue Apr 01 16:32:39 2014 +0000
+++ b/mbed.bld	Fri Jul 25 10:51:34 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7d30d6019079
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file