I would like to control the output of two LEDs with a single pushbutton. When the button is open, D2 should be off and D3 should be on; when the button is closed, D2 should be on and D3 should be off. I would like to achieve this effect using only BJTs.
The following circuit worked as intended in an EveryCircuit simulation:
simulate this circuit – Schematic created using CircuitLab
However, I'm almost certain that this is not optimal; for example, I have a feeling that a solution can be achieved without requiring D1.
Can anyone point me to a better solution?