> I would like to control the brightness of some LEDs (directly attached to > a port on a PIC) thru code. You only need one line per LED, then use PWM to control the brightness. (This might be what you said in the rest of the post. I got a bit confused, but it may have been a long winded say to say "PWM"). Anything over 100Hz should be fine, which means you can easily control a number of LEDs using software PWM from a timer interrupt. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- 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