Driver for a Text LCD using a PCF8574 over I2C It works with standard I2C Module with different pinout

Dependencies:   mbed

Fork of I2CTextLCD by Romilly Cocking

Revision:
1:3561ca8c9754
Parent:
0:6beb6f498640
--- a/main.cpp	Mon Aug 09 14:17:02 2010 +0000
+++ b/main.cpp	Fri Apr 06 09:33:48 2018 +0000
@@ -1,8 +1,15 @@
 #include "mbed.h"
 #include "TextLCD.h"
 
-TextLCD lcd(p9, p10);
-
+TextLCD lcd(PB_9, PB_8,0x4E);
+int k=0;
 int main() {
+    wait(1);
     lcd.printf("Hi mbed World!\n");
+    while(1)
+    {
+        wait(1);
+        lcd.printf("Hi mbed World %d!\n",k);
+        k++;
+    }
 }