Quote Originally Posted by Russ Kincaid View Post
This is a very simple circuit, and not part of the problem, I believe.

Russ
Turn the LEDs around and connect them to ground.
When you apply a logic 0 to the pin, the pin sinks current and the LED lights...when you apply a logic 1 to the pin, the LED has the same voltage on both sides and doesn't light up...negative logic.
That's why everything is backwards...but it's really not...it's working just as designed.