I'm trying to make a semaphore using to LEDs green and red, controlled by one arduino pin. Idea is when pin is low red LED is on and green LED is off, when pin is up green LED is on and red LED is off.
So I've made the circuit using two transistors and in simulation software everything seems to be ok, but on practice red LED (right one on the picture) is still shining dimly when the green one (left one) is on.
On diagrams you can see there is still a small current through red LED, when the pin is in up state.
Is there any ideas how to deal with this current?