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

Dependencies:   C12832 mbed

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Mon Mar 17 19:13:12 2014 +0000
Child:
1:c6c45854ee0a
Commit message:
Initial revision

Changed in this revision

C12832.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/C12832.lib	Mon Mar 17 19:13:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 17 19:13:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file