Sosa

Dependencies:   TextLCD mbed

Revision:
0:af7b404a4e12
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 17 15:47:44 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p20,p19,p21,p22,p23,p24); //rs,e,d4,d5,d6,d7
+int s,m,h;
+
+int main() {
+    while(1){
+        for(h=0;h<24;h++){
+            for(m=0;m<60;m++){
+                for(s=0;s<60;s++){
+                    wait(1);
+                    lcd.locate(0,1);
+                    lcd.printf("Reloj: %2d:%2d:%2d",h,m,s);
+                    }
+                }
+            }
+        }
+}