LCD example program using mbed apps board or apps shield

Dependencies:   C027 mbed

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Mon Feb 03 13:14:28 2014 +0000
Parent:
0:4ea8268e9d66
Commit message:
updated to mbed lib 75 and LCD lib

Changed in this revision

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
--- a/C12832_lcd.lib	Mon Feb 03 04:54:17 2014 +0000
+++ b/C12832_lcd.lib	Mon Feb 03 13:14:28 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/chris/code/C12832_lcd_fork/#8a9cad03124b
+http://mbed.org/users/sam_grove/code/C12832_lcd/#3420eaf252ad
--- a/main.cpp	Mon Feb 03 04:54:17 2014 +0000
+++ b/main.cpp	Mon Feb 03 13:14:28 2014 +0000
@@ -2,14 +2,15 @@
 #include "C027.h"
 #include "C12832_lcd.h"
 
-//#define MBED_APPS_SHIELD
-#define MBED_APPS_BOARD
+#define MBED_APPS_SHIELD
+//#define MBED_APPS_BOARD
 
-DigitalOut myled(LED1);
 #if defined(MBED_APPS_SHIELD)
   C12832_LCD lcd(D11, D13, D12, D7, D10);
+  DigitalOut myled(P3_25);
 #elif defined(MBED_APPS_BOARD)
   C12832_LCD lcd(p5, p7, p6, p8, p11);
+  DigitalOut myled(LED1);
 #else
 #error application board not defined
 #endif
@@ -20,7 +21,8 @@
         wait(0.2);
         myled = 0;
         wait(0.2);
-        lcd.locate(0,0);
+        lcd.cls();
+        lcd.locate(0,3);
         lcd.printf("Hello IoT Workshop\n");
     }
 }
--- a/mbed.bld	Mon Feb 03 04:54:17 2014 +0000
+++ b/mbed.bld	Mon Feb 03 13:14:28 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/dc225afb6914
\ No newline at end of file