The start of a generic Text Display library to drive multiple types of text display in the same way

Dependencies:   mbed

Revision:
0:e8a5ca303ebd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 25 00:01:31 2009 +0000
@@ -0,0 +1,27 @@
+// simple test of the start of a generic Text Display arch, sford
+
+#include "mbed.h"
+
+#include "TextDisplays.h"
+
+TextLCD lcd1(p10, p11, p12, p15, p16, p29, p30); // rs, rw, e, d0-d3
+Terminal lcd2(USBTX, USBRX); // tx, rx
+
+int main() {
+    lcd1.printf("Hello World!\nHow are you?");
+    lcd2.printf("Hello World!\nHow are you?");
+
+    wait(2);
+
+    lcd1.locate(3,1);
+    lcd2.locate(3,1);
+    lcd1.foreground(0xFF0000);
+    lcd2.foreground(0xFF0000);
+    lcd1.printf("I'm Great!");
+    lcd2.printf("I'm Great!");
+
+    wait(3);
+
+    lcd1.cls();
+    lcd2.cls();
+}