I can make a 2 color LED display 3 different colors.
danielcg25
Posts: 3
It flashes between green and red as fast as my BASIC Stamp BS2 can go. It looks orange to me when I do that.
I'm just wondering, will switching the polarity that fast damage anything?
I'm just wondering, will switching the polarity that fast damage anything?
Comments
You should be able to get different variations of color by mixing the red and green in different proportions.
It still amazes me that red and green make yellow.
-Phil
-Phil
No damage at all, that's typically how color mixing is done. In your case the duty cycle is probably close to 50%. If you alter the duty cycle between the two colors you can gradually fade from red to green.
The PWM command might give you a finer control without flickering.
Well they "make" yellow in my brain.
Okay, you're right. (but so am I)