Here's my situation... I was at radio shack the other day and decided to pick up an RGB LED. The package reads "5mm High Brightness Full-Color LED". Now in my ignorance at the time, I didn't realize there were both common cathode and common anode rgb led's. I began breadboarding the LED and quickly realized I had grabbed a common anode led. Is there a way I could have determined this on the package?
Determined to get the LED to do my bidding, I soon realized that if I connect the cathodes to digital pins on the arduino and set the pins to HIGH, I got the full mix of R, G, and B values. So I began setting two pins to LOW, and I was able to then selectively pick the color I wanted.
If the arduino digital pin is set to output (which they are in my situation), how is it that setting them LOW makes that pin act as a ground?

