|
Re: Fading LEDs using a PWM signal from the Edubot
Dan,
This can be done using the PIC's dedicated PWM hardware. Have a look at the beacon code and note where the 40KHz duty cycle is set to 50%. You can get the effect you want by changing this value. The beacon drive circuit can be used to drive an array of LEDs too. If this isn't clear, I'll write some example code and post it.
-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
|