lcd

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
mijimy
Date:
Tue Jun 20 08:24:59 2017 +0000
Commit message:
counting;

Changed in this revision

TextLCD.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Tue Jun 20 08:24:59 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /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);
+            }
+        
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 20 08:24:59 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/0f02307a0877
\ No newline at end of file