Mistakenly purchased common anode RGB LEDs and haven't been able to find any examples showing how to connect to Raspberry Pi 3. All diagrams describe the common cathode type.

I understand the logic is reversed... So 0 is brightest. But I'm not sure how to connect the anode pin vs the RGB pins.


1 Answer 1


Connect the common anode pin to 3.3 volt and each of the other pins to a GPIO (add a current limiting resistor between the LED and the GPIO pin. To Light one of the colors set the corresponding GPIO pin low.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.