you need the series resistors because at start up when the pin has high impedance, high current will flow though the leds.
since the port can source and sink current, it can be done a bit simpler too.
just connect from port pin to anode and cathode with resistor to ground.
and the other one can go from the pin to cathode and anode goes via resistor to vcc. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum