Hi Guys, thanks for your thoughts on this.
What i'm trying to do is control the colour of a tri-colour LED (red, green and blue) I want to be able to set the overall colour of my LED at any colour using different voltages on each pin.
I wasn't aware of the PWM command until now, it works well but goes low when I come out of the PWM loop.
In my code, i'm using the SerIn command to listen for the RGB values, set the colour of the LED acordingly and then wait for another input.
The hardware HPWM command sounds perfect, that way I can just alter the colour and go back to SerIn.
My other problem is that I have 100x tri-colour leds to control. It shouldn't be too much of a problem to address them all, thats if the 16F628 supports SerIn?
I don't mind having 30 of these pics (10 for each colour), each controling 1 colour of 10 separate led's. Do you know if there are enough outputs on the 16F628 to do this?
Many Thanks,
Dan
Bookmarks