Controlling RGB LED (common anode) with Arduino
This is only a problem if you think in terms of SOURCING a current from an output. Outputs also SINK current.



When the output is set LOW current will flow INTO the pin to ground (SINKING).