![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM KL25Z - LCD 16x2 - Teclado 4x4
Dependencies: Keypad TextLCD-modificada mbed
Diff: main.cpp
- Revision:
- 3:6d93b935b945
- Parent:
- 2:316c3e9ad8d8
--- 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; }