mbed Application Shield test pg.

Dependencies:   C12832 LM75B MMA7660 mbed

Revision:
0:5d1367a53ae7
--- /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);
+    }
+}