I have a bi color Red-Green LED with 3 legs (Common Anode).
How can I drive the LED using a single pin from microcontroller (ATtiny45) without using any external logic gates?
I only need red or green at a time mutually exclusive. Combined color/Off state not needed. They are just for status indicators and need to be as bright as possible.
Any schematic using discrete components would be helpful.
Much simpler would be if you wanted yellow as one of your colours. Then just have one LED on all the time and wire the other one to be controlled by the Arduino.