void main() {
Trisb=0;
trisa=0;
Portb.f2=0,Portb.f3=0,Portb.f4=0,Portb.f5=0,Portb.f6=0,Portb.f7=0;
while(1)
{
delay_ms (1000);
Portb.f5=1, portb.f4=1;
delay_ms (3000);
Portb.f4=0, Portb.f3=1;
delay_ms (2000);
Portb.f5=0, Portb.f3=0, Portb.f2=1, Portb.f7=1;
delay_ms (2000);
Portb.f7=0, Portb.f6=1;
delay_ms (2000);
Portb.f6=0, Portb.f5=1,Portb.f2=0, Portb.f4=1;
}
}