I have a microcontroller whose GPIOs can only sink or source 4mA.
I need to drive three 20mA LEDs, only one on at a time. The supply is about 3-3.2V (two lithium AA cells). There's a DC to DC converter to 5V which I could also use if I had to.
First I was going to use a hex buffer from the 5V supply, but it the specs show it drawing a lot of current in addition to the LED supply current, plus I have to run it of the DC to DC converter which reduces efficiency.
Then I thought that just some 2N3904 transistors, with the LED and series resistor connected between the 3V supply and the collector would be a better solution, and cheaper, though a few more parts since I need a base resistor.
I wanted a quad NPN pack but these are very expensive compared to individual NPN transistors.
I thought that there must be some LED driver devices on the market that can operate from a wide range of voltages, but I can't find any.