' Try CMCON=7 as mister_e has stated in reply#3
' now you can query input pins
' from this point it's up to you, how your led should work
CMCON=7
MAIN:
IF PORTB.3 = 0 then SWITCH_LED
goto main
SWITCH_LED:
pause 100 'Debounce
toggle PORTB.4
goto main
end
' Regards
' Johann




Bookmarks