I didn't even realize that toggle command was in there. I that case I could change my code to:
input portb.0
start:
If portb.0 = 1 then
toggle portb.1
pause 1000
endif
goto start
I still think you need the pause of at least a second. Otherwise the light will pulse when you are holding the button. You need a delay to allow the user to remove there finger.
Bookmarks