You are on page 1of 5
arjoerass 6st — 6 BS /roscznnan x 1 Fr cass beroade ste 2: AGEN PAD SIGEADG AMEE TOR eee 7 18s SS SS Oe ies Stour uaF om ee 19: wota main’) ( 21: he mmerotOy 22: ime estatusoun0; 23: ine Sstatuereatardy 24: //rNGION BE INECIRLIZAR Bl £CD 25: “ine teclar 26: ABtomIStOGo0001110)5 //vER DAFASHEED DSL PIC PARA VER QUE OUEREWOS DE DHiaaas) ¥ ANALOGICO, £1 ESTE CASO 1110 ¢2 para s0l0 FAO cono anslogico Lea tnie( Keypad Int (); _ // INICIALTEANOS BL KEYPAD Led. Crd LCD CURSOR_OFF); //LIMPIA EL CURSOR Ted-out (1/1, 7A0C") 7 // (£41a,colunna, "TBXTO QUE DESEO BSCRIBIRY) ited Cp (*TEXT0") 1 $5 ENVIA DIRECTAMENTE: (fed. Ghe(eila,colunna, 'h'); SOLO UN CARACTER, (ied the eB(th') S010 UN CARACTER directo 3 = ob00011111 PORTS = 0x00; while (2) { ‘int ADCINT: ghar ADCSTR (15],str1 (15],ste2 (1511 (//RECIBE EL DATO EN EL PIN QUE TOMAMOS [ADEINT=ADC_Read (0) 7 IntTostx (ABCINT, ADCSTR) : 71 TRANSFORYA DE BNTERO A UN TEXTO (entero, string)? 4: "Led Out (1,11, AD0STR) 42: tecla = Keypad Key Preso(); ‘// SNUIA DEL KEYPAD a un numero // Keypa Gtick => hace que con un solo clic aparezcca el numero tua ad_Rey 43: //- 4g (Eecla==16) ( estatussum- ) ig (estatussun=-1) { if (teclae=1) ( tecla=77 suma=tecla+stna; ) Af (tecla==2)( tecla=é; sunasteclatsunas ) 4g(tecla==3) { tecla=9; TContrasen a tecado swith bey (950 3:Key = Stibreak; case 4: Key = Sze ase 5:Key = S3;eak; as0 6: Key = Streak; ase 7: Key = 66;break: 2508: Key = S6ibreak; case 9: Key» S7:break cate 10:Key = 67-break; case 11 Key = a4break; case 12:Key = 58,00, case 13: Key=«2;break: case 14 Key= e800, case 15: Key = 357509; case 16: Key = 68;be3k ) return key, sbitLcD_ASat AC4_Dit sbitLCD_EN at RS. b sbitLc0_07 at RC3_bit sit LcD_D6 at RC2_bH bit LCD_DSat ACA_Di shit LCD_D4 at RCD_Bt, sbitLCD_AS_Direction at TRISC4_bit, 9 0,05_pecion st RSC char usar hat 5) 239 void mane -s-on00000000; xed. edit Led, emal_UeD_CURSOR_OF: Led. LeD CLEAR edo. 4D contrat ted out "conte: we suatofie tecadods ted. OU ‘Afjot usuario ) Lena ‘elay_ms(200}; ) (error PORTAFL=15 Led_emalt); Led_Out(1,"contra correcta);

You might also like