![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
tarea#3
Dependencies: FPointer TextLCD keypad mbed
Fork of Tarea2_Teclado by
Diff: main.cpp
- Revision:
- 1:c1571c87c8ee
- Parent:
- 0:54e8dab91b77
- Child:
- 2:4c3de5a37f24
--- 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(" ");