On Sat, 26 Jun 2004 07:22:18 -0700, Anthony Van Herrewege wrote: >> Why don't you just use 5 PIC port pins? > >Hm, that could be an option, but I'd rather not use that much pins. I've only got 6 pins left on the PIC18F452 and I'd like to keep those. The fewer pins used the better. > I haven't been following this thread too closely so this may not be an option for you but take it for what it's worth (if anything). It should be possible to connect your LEDs between the outputs of two 8-bit serial-to-parallel shift registers. For one color, write a 1 to one of the registers and a 0 to the other. Swap these bits for the other color. Write a 0 to both bits for LED off. Actually, writing a 1 to both pins would turn the LED off as well. If flicker isn't a concern while changing the LEDs, all you'd need is 1 clock line and 1 data line out of the PIC. Otherwise, you'll need a third line to latch the data (and, of course, shift registers with a latch-enable input). Regards, Bob -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics