TextLCD with I/O I2C expander

Dependencies:   mbed

Revision:
0:c54cd22b2d9b
diff -r 000000000000 -r c54cd22b2d9b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 23 13:04:51 2010 +0000
@@ -0,0 +1,24 @@
+#include "I2CTextLCD.h"
+
+I2CTextLCD LCD(p9, p10,0x40);
+
+int main() {
+
+    while (1) {
+        for (int i=0;i<8;i++) {
+            LCD.cls();
+            LCD.locate(0,0);
+            for (int j=0;j<32;j++) {
+
+                LCD.printf("%c", i*32+j);
+            }
+            wait(1);
+            if ((i % 2)==0)
+                LCD.backlight(true);
+            else
+                LCD.backlight(false);
+        }
+
+    }
+
+}