I have been trying to work out a circuit something like the following:
I want VOUT to be 3V when the switch is open and 5V when the switch is closed. The simulation seems to give me what I want when the switch is open, but not when it's closed. What am I doing wrong? Is there a better way to do this? I was avoiding a common cathode diode pair to avoid the forward voltage drop.