JOSE RUIZ ORTEGA, SEBASTIAN PELAEZ LENTEJA // Programa que imprime en la pantalla LCD los valores digitados en el teclado, ademas genera un sonido al presionar cada tecla.
Dependencies: FPointer TextLCD keypad mbed
Revision 1:c1571c87c8ee, committed 2014-03-28
- Comitter:
- jaruiz
- Date:
- Fri Mar 28 22:33:04 2014 +0000
- Parent:
- 0:54e8dab91b77
- Child:
- 2:4c3de5a37f24
- Commit message:
- jj
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 15 15:40:22 2013 +0000 +++ b/main.cpp Fri Mar 28 22:33:04 2014 +0000 @@ -40,14 +40,19 @@ sp=ind; q=1; } - else{ - sp=10*sp+ind; - } + else { + sp=10*sp+ind; + } if(sp>999)sp=999; + + lcd.locate(3,0); lcd.printf(" "); lcd.locate(3,0); lcd.printf("%.0f",sp); - } + Vout=2.5; + wait(0.2); + Vout=0; + } else if(j==1){ if (q!=1 && kp<10){ kp=ind; @@ -152,12 +157,38 @@ def_posicion(k); ind=0; q=0; + Vout=2.5; + wait(0.1); + Vout=0; + wait(0.05); + Vout=2.5; + wait(0.1); + Vout=0; } if(ind==13){ + Vout=2.5; + wait(0.07); + Vout=0; + wait(0.03); + Vout=2.5; + wait(0.07); + Vout=0; + wait(0.03); + Vout=2.5; + wait(0.07); + Vout=0; ind=0; goto PID; + } if(ind==11){ + Vout=2.5; + wait(0.1); + Vout=0; + wait(0.05); + Vout=2.5; + wait(0.1); + Vout=0; if (k==0){ sp=0; lcd.locate(3,0); lcd.printf(" ");