FRDM KL25Z - LCD 16x2 - Teclado 4x4

Dependencies:   Keypad TextLCD-modificada mbed

/media/uploads/Susanaranjo/img_20160508_014013.jpg

Files at this revision

API Documentation at this revision

Comitter:
Susanaranjo
Date:
Mon May 16 16:01:57 2016 +0000
Parent:
2:316c3e9ad8d8
Commit message:
LCD

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun May 08 17:59:09 2016 +0000
+++ b/main.cpp	Mon May 16 16:01:57 2016 +0000
@@ -142,7 +142,7 @@
                lcd.cls();   
                lcd.printf("Pulse * para\n");
                lcd.printf("empezar de nuevo");
-               wait_ms(3000);
+               wait_ms(2000);
                lcd.cls();
                lcd.locate(0,0);
                lcd.printf("Kp=%4Lu",kp);
@@ -211,6 +211,10 @@
                    lcd.printf("_   ");}
                lcd.locate(3+i,0);
                lcd.printf("%u",tecla);
+               if (i<3){
+                   lcd.locate(4+i,0);
+                   lcd.printf("_");
+                   }
                kp=entero; }
                
            //Ki
@@ -220,6 +224,10 @@
                    lcd.printf("_   ");}
                lcd.locate(11+i,0);
                lcd.printf("%u",tecla);
+                if (i<3){
+                   lcd.locate(12+i,0);
+                   lcd.printf("_");
+                   }
                ki=entero;}     
            
            //Kd
@@ -229,6 +237,10 @@
                    lcd.printf("_   "); }
                lcd.locate(3+i,1);
                lcd.printf("%u",tecla);
+                if (i<3){
+                   lcd.locate(4+i,1);
+                   lcd.printf("_");
+                   }
                kd=entero;}            
            
            //Sp
@@ -238,6 +250,10 @@
                lcd.printf("_   "); }
                lcd.locate(11+i,1);
                lcd.printf("%u",tecla);
+                if (i<3){
+                   lcd.locate(12+i,1);
+                   lcd.printf("_");
+                   }
                sp=entero; }