mbed Application Shield test pg.

Dependencies:   C12832 LM75B MMA7660 mbed

Files at this revision

API Documentation at this revision

Comitter:
txracing
Date:
Fri Oct 21 06:32:43 2016 +0000
Commit message:
first commit!

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
LM75B.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Fri Oct 21 06:32:43 2016 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM75B.lib	Fri Oct 21 06:32:43 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MMA7660.lib	Fri Oct 21 06:32:43 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Sissors/code/MMA7660/#36a163511e34
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 21 06:32:43 2016 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "LM75B.h"
+#include "C12832.h"
+#include "MMA7660.h"
+
+// Using Arduino pin notation
+C12832 lcd(D11, D13, D12, D7, D10);
+MMA7660 MMA(D14,D15);
+LM75B sensor(D14,D15);
+
+int main()
+{
+
+    while(true) {   // this is the third thread
+        lcd.cls();
+        lcd.locate(0,3);
+        lcd.printf("mbed application shield!\n");
+        lcd.printf("x=%.2f y=%.2f z=%.2f\n",MMA.x(), MMA.y(), MMA.z());
+        lcd.printf("Temp = %.1f", sensor.temp());
+        wait(1.0);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 21 06:32:43 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3
\ No newline at end of file