void main()
{
TRISB = 0 ; // set PORTB as OUTPUT for(;;) // forever
{
PORTB = 0xff ; // turn all LEDs ON
Delay_ms(500) ; // wait 500 ms
PORTB = 0 ; // turn all LEDs OFF
Delay_ms(500) ; // wait 500 ms
}
}
Circuit2017
circuit2017.
{
TRISB = 0 ; // set PORTB as OUTPUT for(;;) // forever
{
PORTB = 0xff ; // turn all LEDs ON
Delay_ms(500) ; // wait 500 ms
PORTB = 0 ; // turn all LEDs OFF
Delay_ms(500) ; // wait 500 ms
}
}
Circuit2017
circuit2017.
Tidak ada komentar:
Posting Komentar