Seems like you could have one PWM signal driving an NPN on the negative side and then a small PNP for each bulb on the positive side to drive the pattern. DougM -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Alan B. Pearce Sent: Friday, March 16, 2007 3:02 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC] Need urgent help with pic code >The idea is a circuit of 8 channel hi-bright led with a specific pattern. >When the circuit is powered on, all 8 channels are fade-in slowly for about >2 seconds (start to illuminate from off state to max bright light) when the >led are fully on, some pattern is running (any pattern, doesn't matter). > >When power off, the led are fade out. Look in the piclist.com archives for some code by Scott Dattalo for 8 channel PWM. That will give you the ability to fade in and out. Then you just need to do the code for the pattern generation. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist