LCD example program using mbed apps board or apps shield

Dependencies:   C027 mbed

Revision:
1:da57ef8d306e
Parent:
0:4ea8268e9d66
diff -r 4ea8268e9d66 -r da57ef8d306e main.cpp
--- 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");
     }
 }