Example using sensors from the mbed apps board or shield

Dependencies:   C027 LM75B MMA7660 mbed

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Mon Feb 03 04:54:17 2014 +0000
Child:
1:ac55ff7b1a7d
Commit message:
Initial commit

Changed in this revision

C027.lib Show annotated file Show diff for this revision Revisions of this file
C12832_lcd.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/C027.lib	Mon Feb 03 04:54:17 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/ublox/code/C027/#37252d7bcd9e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832_lcd.lib	Mon Feb 03 04:54:17 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/C12832_lcd_fork/#8a9cad03124b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 03 04:54:17 2014 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "C027.h"
+#include "C12832_lcd.h"
+
+//#define MBED_APPS_SHIELD
+#define MBED_APPS_BOARD
+
+DigitalOut myled(LED1);
+#if defined(MBED_APPS_SHIELD)
+  C12832_LCD lcd(D11, D13, D12, D7, D10);
+#elif defined(MBED_APPS_BOARD)
+  C12832_LCD lcd(p5, p7, p6, p8, p11);
+#else
+#error application board not defined
+#endif
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+        lcd.locate(0,0);
+        lcd.printf("Hello IoT Workshop\n");
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 03 04:54:17 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file