void main()
{
TRISA=0x00;
TRISB=0x00;
while(1)
{
PORTB=0x06;
PORTA=0x01;
delay(10);
PORTB=0x5B;
PORTA=0x02;
delay(10);
PORTB=0x4F;
PORTA=0x04;
delay(10);
PORTB=0x66;
PORTA=0x08;
}
}
This a few program that i make in creating a scoreboard for basketball using PIC 16f84a..Is this program correct??