Help with programming an LED knight-rider scanner!

Hippynerd:
Thats curious, why would you build a resistor in parallel with the LED?