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
Bookmarks