I have rgb led common cathode.
I want to make basic OFF-ON spst switch.
When the power is off i want the led to be red and when i press the switch button i want the led to change to green.
At present I connected the red pin of the led to the main positive 12v power supply and the green pin of the led to the switched positive pin but then when I press the switch i get mixed red and green led lite.
How to fix that?
I will appreciate circuit schematic.
Thanks.
I want to make basic OFF-ON spst switch.
When the power is off i want the led to be red and when i press the switch button i want the led to change to green.
At present I connected the red pin of the led to the main positive 12v power supply and the green pin of the led to the switched positive pin but then when I press the switch i get mixed red and green led lite.
How to fix that?
I will appreciate circuit schematic.
Thanks.
Last edited: