TextLCD with I/O I2C expander

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Wimpie
Date:
Thu Dec 23 13:04:51 2010 +0000
Commit message:

Changed in this revision

I2CTextLCD.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 c54cd22b2d9b I2CTextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/I2CTextLCD.lib	Thu Dec 23 13:04:51 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Wimpie/code/I2CTextLCD/#704f87be7993
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);
+        }
+
+    }
+
+}
diff -r 000000000000 -r c54cd22b2d9b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Dec 23 13:04:51 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da