I have a battery charger IC that tells you the IC's function via a "staus" pin output that's one of three states: Hi-Z when a battery isn't present or is too hot or cold to charge, high when it's actively charging, and low when it's finished charging. I'd like to convert this signal to drive two LEDs, red and green (they're actually both in one package, but all 4 pins are accessible). The idea being that Hi-Z=>off, high->red (charging), and low->green (finished). What's the easiest way to do this? So far I haven't thought up any easy schemes... and my first -- now obviously dumb -- approach of connecting the pin to the two LEDs connected back to back -- with current limiting resistors -- doesn't work in that a Hi-Z output just causes both LEDs to glow dimly!
There's gotta be some really easy way to do this?
Thanks,
---Joel