Example program with the LCD display of the mbed application shield.

Dependencies:   C12832 mbed

Revision:
0:4249e647c629
Child:
3:12965b28af04
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 17 19:13:12 2014 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "C12832.h"
+ 
+C12832 lcd(D11, D13, D12, D7, D10);
+
+int main()
+{
+    // clear the screen
+    lcd.cls();
+    
+    // print the first line and wait 3 sec
+    lcd.locate(0,3);
+    lcd.printf("mbed application board!");
+ 
+    // print the counter prefix; the number will be printed in the while loop
+    lcd.locate(0,15);
+    lcd.printf("Counting:");
+
+    int i=1;
+    while(i++) {
+        lcd.locate(42,15);
+        lcd.printf("%d", i);
+        wait(0.01);
+    }
+}
\ No newline at end of file