Driver for a Text LCD using a PCF8574 over I2C

Dependencies:   mbed

Fork of I2CTextLCD by Romilly Cocking

Revision:
2:628a00fec43c
Parent:
1:eac18254e072
Child:
3:846b36e1f4d5
--- a/main.cpp	Thu Jan 14 09:48:50 2016 +0000
+++ b/main.cpp	Mon Jan 18 04:02:04 2016 +0000
@@ -1,10 +1,21 @@
 #include "mbed.h"
 #include "TextLCD.h"
 
-TextLCD lcd(I2C_SDA,I2C_SCL);
+TextLCD lcd(p9,p10);
 
-int main() {
-    lcd.printf("Hi mbed World!\n");
-    lcd.locate(4,3);
-     lcd.printf("Hiffbdd!\n");
+int main()
+{       int count=0;
+        lcd.printf("Hi mbed World!");
+        wait(5);
+        lcd.cls();
+        lcd.locate(4,2);
+        lcd.printf("count:");
+        while(1)
+        {   for(count=0;count<21;count+=1)
+            {   lcd.locate(11,2); 
+                lcd.printf(" %d ",count);
+                wait(0.5); 
+            }    
+         
+        }
 }