I'm trying to use my common anode rgb led but i don't understand how the mixing colors work. RGB led: R = 1.9V , G = 3.0V , B = 3.0V; 20mA. I calculated the resistor (5V - 1.9V) / 20mA = 150 ohm for Red (5V - 3.0V) / 20mA = 100 ohm for Green and Blue.
I tried many colors but the don't seems right: (i tried with Blue)
analogWrite(red, 0); analogWrite(green, 0); analogWrite(blue, 255);
But the color was yellow. Is it right? For me is really strange :) I also tried to work with a RGB color picker online: i tried a pink rgb color (235, 47, 166) but the result was a blue-green color.
Please help! :) Thank you!