Switching between two parts of a circuit using basic components
Use nmos and pmos.  Add a pullup or pulldown to turn one or the other on during microcontroller config.







simulate this circuit &ndash; Schematic created using CircuitLab