lcd

Dependencies:   TextLCD mbed

Revision:
0:348c0df0b54e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 20 08:24:59 2017 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "TextLCD.h"  // insert lcd library
+
+TextLCD display(D8, D9, D4, D5, D6, D7); // rs, e, d4-d7 // declare lcd
+
+int main() {
+    int i; // declare variable i
+        
+    while(1) {
+        for(i=99;i>0;i-=2)
+        {   display.locate(4,1); // col 1 row 1
+            display.printf("count:%2i",i);
+            wait(0.5);
+            }
+        
+    }
+}