Ejemplo RTC

Dependencies:   Debounced FPointer RTC-DS1307 TextLCD keypad mbed

Fork of IngresoHORA by Jesse Beltran

Files at this revision

API Documentation at this revision

Comitter:
Jesse
Date:
Thu May 01 00:37:00 2014 +0000
Parent:
2:21ba0afb6205
Commit message:
Tarea

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 01 00:29:00 2014 +0000
+++ b/main.cpp	Thu May 01 00:37:00 2014 +0000
@@ -100,15 +100,17 @@
         
         if(Read==1)
         {
-            lcd.cls();
-            lcd.printf("     Lectura!");
-            wait(0.2);
+            //lcd.cls();
+            //lcd.printf("     Lectura!");
+            //wait(0.2)
             rtc.getTime(tm);
             lcd.cls();
-            lcd.locate(0,1);            
+            lcd.locate(0,1);            // Print and refresh data on line 2 of the LCD display     
             lcd.printf("%.2D",tm.hour);
             lcd.printf(":%.2D",tm.min);
             lcd.printf(":%.2D",tm.sec);
+            //lcd.printf("%d",tm.hour);
+        
             lcd.locate(0,0);
             lcd.printf("%.2D",tm.mon);
             lcd.printf("/%.2D",tm.date);
@@ -117,11 +119,12 @@
         }
         if(Write==1)
         {
-            lcd.cls();
-            lcd.printf("   Escritura");
+            //lcd.cls();
+            //lcd.printf("Ingrese Datos");
             if(Panta.falling())
             {
                 pp=pp+1;
+                //lcd.printf("");
             }
             if(pp==1)
             {