Morgan Olsson email (remove spam text)
Hej Harold Hallikainen. Tack för ditt meddelande 15:09 2002-09-06 enligt nedan:
>Another trick on 2 pin bi-color LEDs is to put a couple resistors in series (I use about 240 ohms) between +5V and ground. Put the LED between the junction of the resistors and the PIC pin. Tristate the pin to turn the LED off (note that PIC power dissipation will go up a bit since the pin is held at half Vcc by LED leakage current).
The bigger power waste is that current also flows in the resistor that is parallel to th elit diode. And when both are off, current flows in both resistors.
One method is to replace both resistors with zeners, and add one current limiting resistor in series with the led. (if we don´t dare to rely on totla series resistnace of PIC+LED+zener, which i don´t).
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
In reply to: <firstname.lastname@example.org>
See also: www.piclist.com/techref/displays.htm?key=led
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the