Hej Harold Hallikainen. Tack f=F6r 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=B4t dare to rely on= totla series resistnace of PIC+LED+zener, which i don=B4t). /Morgan > To make the LED glow one color, set the pin low. The other color, set the= pin high. This trick can save you one PIC pin. > >Harold > > > > >________________________________________________________________ >GET INTERNET ACCESS FROM JUNO! >Juno offers FREE or PREMIUM Internet access for less! >Join Juno today! For your FREE software, visit: >http://dl.www.juno.com/get/web/. > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.