Encendido y apagado de luz led haciendo uso de un control remoto

Dependencies:   Pulse1 TextLCD mbed

Fork of Tarea_6_control_remoto by Mauricio Escobar

Files at this revision

API Documentation at this revision

Comitter:
mescobart22
Date:
Thu Jun 05 18:35:33 2014 +0000
Parent:
0:f25302b74b6f
Commit message:
Tarea 6 encendido y apagado de un led desde un control remoto

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed May 21 15:55:49 2014 +0000
+++ b/main.cpp	Thu Jun 05 18:35:33 2014 +0000
@@ -37,7 +37,7 @@
     {
             lcd.cls();
             lcd.locate(0,0);
-            lcd.printf("PULSE UNA TECLA");
+            lcd.printf("PRESIONE UNA TECLA");
           
 ini1: fflush( stdin );
       header=0;
@@ -76,13 +76,13 @@
             wait(3);
             lcd.cls();
             lcd.locate(0,0);
-            lcd.printf("HH:%d",head_H);
+            lcd.printf("HH:%d",Head_H);
             lcd.locate(8,0);
             lcd.printf("Tby:%d",Tp);
             lcd.locate(0,1);
-            lcd.printf("HL:%d",head_L);
+            lcd.printf("HL:%d",Head_L);
             lcd.locate(8,1);
-            lcd.printf("Nby:%d",num_bits);
+            lcd.printf("Nby:%d",Num_bits);
             wait(3);
             Tecla=0;
       }
@@ -96,13 +96,13 @@
             wait(2);
             lcd.cls();
             lcd.locate(0,0);
-            lcd.printf("HH:%d",head_H);
+            lcd.printf("HH:%d",Head_H);
             lcd.locate(8,0);
             lcd.printf("Tby:%d",Tp);
             lcd.locate(0,1);
-            lcd.printf("HL:%d",head_L);
+            lcd.printf("HL:%d",Head_L);
             lcd.locate(8,1);
-            lcd.printf("Nby:%d",num_bits);      
+            lcd.printf("Nby:%d",Num_bits);      
             Tecla=0; 
             wait(2);
       }
@@ -117,31 +117,31 @@
             wait(2);
             lcd.cls();
             lcd.locate(0,0);
-            lcd.printf("HH:%d",head_H);
+            lcd.printf("HH:%d",Head_H);
             lcd.locate(8,0);
             lcd.printf("Tby:%d",Tp);
             lcd.locate(0,1);
-            lcd.printf("HL:%d",head_L);
+            lcd.printf("HL:%d",Head_L);
             lcd.locate(8,1);
-            lcd.printf("Nby:%d",num_bits);
+            lcd.printf("Nby:%d",Num_bits);
             Tecla=0; 
             wait(2);      
       }
       if ((Tecla!=T3)&&(Tecla!=T2)&&(Tecla!=T1)&&(Tecla!=0)){ 
       lcd.cls();
-      lcd.printf("TECLA INCORRECTA");
+      lcd.printf("TECLA FALSA");
       lcd.locate(0,1);
       lcd.printf("Codigo=%d",Tecla);
       wait(2);
       lcd.cls();
       lcd.locate(0,0);
-      lcd.printf("HH:%d",head_H);
+      lcd.printf("HH:%d",Head_H);
       lcd.locate(8,0);
       lcd.printf("Tby:%d",Tp);
       lcd.locate(0,1);
-      lcd.printf("HL:%d",head_L);
+      lcd.printf("HL:%d",Head_L);
       lcd.locate(8,1);
-      lcd.printf("Nby:%d",num_bits);
+      lcd.printf("Nby:%d",Num_bits);
       Tecla=0; 
       wait(2);}
     }