LCD 2x16 example

Dependencies:   TextLCD mbed

Fork of k64f-lcd by Hernán Maya

Files at this revision

API Documentation at this revision

Comitter:
juanitoinig84
Date:
Thu Jun 02 15:29:08 2016 +0000
Parent:
1:2769c0bc7b9f
Commit message:
LCD 2 x 16 with counter

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 02 14:40:25 2016 +0000
+++ b/main.cpp	Thu Jun 02 15:29:08 2016 +0000
@@ -9,10 +9,20 @@
 
 int main()
 { 
+    wait(0.001);
     lcd.cls();
     lcd.locate(0,0);
     lcd.printf("Hello World!\n");
+    wait(0.1);
     lcd.locate(0,1);
     lcd.printf("EasyBOD\n");
-    while(1);
+    
+    int iCounter = 0;
+    while(1)
+    {
+        lcd.locate(8,1);
+        lcd.printf("%d",iCounter);
+        iCounter++;
+        wait(1.0);
+    }
 }
\ No newline at end of file