Dinithi12
Banned
Code:
program LED_Blink
main:
TRISB = 0 ' Configure pins of PORTB as
output
eloop:
PORTB = $FF ' Turn on diodes on PORTB
Delay_ms(1000) ' Wait 1 second
PORTB = 0 ' Turn off diodes on PORTB
Delay_ms(1000) ' Wait 1 second
goto eloop ' Stay in loop
Last edited by a moderator: