You are on page 1of 1

#INCLUDE "C:\Archivos de programa\PICC\Devices\16F628A.

H" #FUSES NOWDT, NOLVP, MCLR, INTRC #USE DELAY (CLOCK=4M) void main(void) { int i; int const TD[10] = {0x3F, 6, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 7, 0x7F, 0x67}; output_b(TD[i]); BUCLE: while (input(PIN_A0) == 1) { // espera que se presione el botton } delay_ms(20); i++ ; if (i == 10) { i = 0 ; } output_b(TD[i]); while (input(PIN_A0) == 0){} // Espra que suelte el button delay_ms(20); goto BUCLE ; }

You might also like