MOVED: Can code be a substitute for a resistor? (noob alert!)

This topic has been moved to General Electronics.

http://forum.arduino.cc/index.php?topic=232033.0