About Me

Previous Posts

Friday, July 01, 2005

Switch makes LED blink

'Set the switch to portb.0 and set LED to portd.0input portb.0output portd.0main:if portb.0 = 1 then' if the switch is closed on pin RB0low portd.0' set pin RD0 lowelsehigh portd.0' set RD0 highendifgoto main