This blog demonstrates how to drive a bi-color LED, or any 2 LEDs, by using only one microcontroller pin. Sinking or sourcing current from the LED selects which one will light up. Setting the pin as input turns both LEDs off. Alternating between 0,1, and high-Z, both LEDs are fully controllable and even dimmable. The […]
