
DEFINE OSC 4
pause 500 'pause for 500 milliseconds before starting
input portb.2
output portc.3 'make port c3 an output
main: 'the main loop
if portb.2 = 1 then ' if the switch is closed on pin RB0
low portc.3 ' set pin RD1 low
else
high portc.3 ' set RD1 high
endif
0 Comments:
Post a Comment
<< Home