Use two port lines. Connect the led (in series with a resistor) between the port lines. With one line up and the other down, the led is green. With the state of the lines reversed, the led is red. With both lines up (or down) the led is off. The moral equivalent of a bridge circuit... Edward Gisske, P.E. Gisske Engineering 608-523-1900 gisske@offex.com ----- Original Message ----- From: "Chris Oesterling" To: Sent: Sunday, April 18, 2004 7:26 AM Subject: [PIC]: Driving a single bicolor LED > All, > I'm hoping to find a simpler solution to what I thought would be a > simple task of driving a single green/red bicolor LED from a PIC. > Reversing polarity isn't easy! I have found an old article that uses a > relay or suggests a better solution of using a couple of transistors and > resistors. Sorry for such a basic question. I searched the archives > and only found a matrix solution. > Thank you! > - Chris > > -- > 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.