David, Thanks I did not know that the PICs would handle ground and current for me. I tried what you stated but one of the colors always stayed on. But I ended up using pin 0 --> 2 and connecting all 3 of the BI-Color LED pins to the PICs. pin 0 turns on red, pin 1 is power, and pin 2 is green. If I want to turn off the light all I have to do is LOW the pin 1. I could not figure out what you were asking me to do when you say write a zero to the pin. The down side of this is that it eats up 3 pins. Where as I could do the same thing with 2 pin and 2 LEDs rather that just a BI-Color 3 pin LED. Thanks for everyones help and input. Rob -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of David Harris Sent: Friday, September 06, 2002 4:43 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC] BI-COLOR LED Hi- You can wire pin2 to 5V, and pins 1&3 to two different output pins on the PIC. If you write a zero to the pin connected to pin1, then current will flow fron teh 5V to the PIC pin into ground inside the PIC, likewise the other pin. If you make them both zero, you will turn on both colours. If a pin is a 1, then both sides of the LED are at 5V, so no current flows, and the LED is off. David Robert Wade wrote: > Sorry I am a newbie at this but I have reviewed 3 books and none of them > explain how to control the ground. They only explain how to turn on and off > the power. I have a simple BI-COLOR LED from radioshack (#276-207) and to > change between the colors I have to turn on and off or switch the ground > between the PIN 1 and 3. I am using the normal "starter" PICs 16F84A. > > Thanks in advance for any advice. > > Rob > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- David Harris OmniPort Home Page: http://www3.telus.net/OmniPort1/ Discussion egroup: http://groups.yahoo.com/group/OmniPort Swiki: http://omniport.swiki.net/1 -- 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.