Need help to get correct colours from RGB common anode LEDs.
It's weird that the red colour code is 255,0,0 but I need to pass 255,255,0 to my Arduino mini pro to get red colour.
Also, 0.255.255 to get green and 255,0,255 to get blue. Most samples I found only the web, they only need single 255 to get R,G,B colours correctly.
Please help!
I have verified all the pins and they should be all correct.
RGB LED pins are connected to Arduino mini pro:
R=pin 6
Comm andode =pin VCC
G=pin 5
B=pin 3
Where is your common connected? Is it a common Anode(+ve) or common Cathode(-ve) RGB LED, If its in GND at the moment,, change it to +5v and vice versa
Thanks for the quick reply!
LED Common is now connected to VCC. I tried to connect the common to GND, then it won't work at all.
stonez56:
I have verified all the pins and they should be all correct.
RGB LED pins are connected to Arduino mini pro:
R=pin 6
Comm andode =pin VCC
G=pin 5
B=pin 3