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.