Text LCD demo

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Fri Jul 08 00:42:07 2011 +0000
Commit message:

Changed in this revision

TextLCD.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
diff -r 000000000000 -r bba654cca6d6 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri Jul 08 00:42:07 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r bba654cca6d6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 08 00:42:07 2011 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3
+Timer t;
+
+int main() {
+// Start timer
+    t.start();
+// Clear LCD Screen
+    lcd.cls();
+    wait(1);
+// Print to LCD on first line
+    lcd.printf("Hello LCD World!\n");
+    while (1) {
+// Move cursor to start of second display line
+        lcd.locate(0,1);
+// Print elapsed time from timer on LCD
+        lcd.printf("%e sec", t.read());
+        wait(.2);
+    }
+}
diff -r 000000000000 -r bba654cca6d6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 08 00:42:07 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e