The easiest way would be to use the TOGGLE command.
start:
if (your input pin) = 0 then toggle (your led port) : pause 50 : goto start
goto start
The easiest way would be to use the TOGGLE command.
start:
if (your input pin) = 0 then toggle (your led port) : pause 50 : goto start
goto start
Please don't post the same question in multiple locations. Pretty much everybody reads all the forums here, and it's helpful to keep all the responses together. Welcome aboard!
Sorry Charlie, I wasn't sure of where to post this. I was going to ask a mod to close one of them, bit silly really.
Bookmarks