Рет қаралды 5,731
Common Anode RGB LEDs
2 solutions for working with them, one via logic, and the other via transistors. See which is your favorite...
Source (sketches):
Logic: atcp.us/arduino/RGB-LED_CommAn...
NPNs: atcp.us/arduino/RGB-LED_CommAn...
I show example circuits, a little theory, draw up the example circuits, then show them running.
Some folks make good arguments as to why CA is preferable, but in the case of an MCU which produces 'source' instead of 'sink', ... you decide!