Tweet

Replying to @josecastillo

Pulling the gate high does cause current to stop flowing through the MOSFET, but it still flows (albeit at a lower voltage) through the body diode. That’s the circuit on the right: you can see that no matter where the switch is, the LED glows. It’s just slightly dimmer when off.

(original)