I'm a little new here, but read your post on Yoshi (from last year) about a temperature display that would sequentially light up as temperatures rose. I am working on a similar problem. I am looking to build a simple comparator to display one LED if the temperature is over X degrees, and also light it up if it falls below Y degrees. I want to have a second light that lights whenever the first is off. I figure I need two comparators (I'll be using an LM339), but I can't figure out how to connect the outputs to get the LED logic I want.
Rather than use a true comparator, use an op-amp as a comparator. LM358 is a cheap common dual. If the voltage on the + (non-inverting) input is greater than that on the - (inverting) input the output goes high, otherwise it's low.
(A true comparator's output is low or floating) Then you can put LED A - Resistor A -junction - Resistor B - LED B in series across the supply, with the junction to the opamp output.
On bargraph thermometers, I came across
this 20-LED thermometer recently using cascaded LM3914 bargraph chips.