You are on page 1of 1

int x[10] = {63,6,91,79,102,109,125,7,127,111};

int cn=0;
int i=0;
void main() {
trisb =0;
portb=63;
trisc =0;
portc =63;
trisd=1;
portd=0;

while(1)
{
if(portd.f7==1 && i==0)
{
i = 1;
cn++;
if(cn>9){
cn=0;
}
if(portd.f7==0&& i ==1){
i =0;
portb = x[cn];
portc = x[cn];
delay_ms(250);
}

}
}

You might also like