Then, may I ask exactly where you put the line?

AND
Just a manual switch at port B,0 that is providing a high ...
Does it have a pull-down resistor to provide a low when the switch is not pressed?
<br>