led_blink

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
ha731548874
Date:
Mon Apr 30 09:41:28 2018 +0000
Commit message:
own_programme

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	Mon Apr 30 09:41:28 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 30 09:41:28 2018 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p23, p24, p25, p26, p27, p28);                  //rs, e, d4-d7
+
+int x=0,y=0;
+int main() 
+{
+    while(1) 
+    {
+        for(x=0;x<4;x++)
+        {
+            for(y=0;y<60;y++)
+            { 
+            lcd.cls();
+            lcd.locate(0,0);
+            lcd.printf("min:%d",x);
+            lcd.locate(0,1);
+            lcd.printf("sec:%d",y);
+
+            wait(0.1);
+        
+            }
+             
+          }
+        }
+    }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Apr 30 09:41:28 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/fb8e0ae1cceb
\ No newline at end of file