DavidLindh
New Member
Ok, rewrote the blending with pwm and it works fine except one thing.
I have 3 leds, one red, green and blue connected to RC0 - 2.
I also have 2 pots connected to RA0 and 1 that controls the speed of the fade between colors and how long it should stay on that color.
**broken link removed**
By turning the active led on, then fade in the new color and when the fade is done I turn the new color on and start to fade the old one out.
Fore some reason there is a delay when both leds are turned on. If the speed variable is bigger the delay gets longer.
I have 3 leds, one red, green and blue connected to RC0 - 2.
I also have 2 pots connected to RA0 and 1 that controls the speed of the fade between colors and how long it should stay on that color.
**broken link removed**
By turning the active led on, then fade in the new color and when the fade is done I turn the new color on and start to fade the old one out.
Fore some reason there is a delay when both leds are turned on. If the speed variable is bigger the delay gets longer.
Last edited by a moderator: