Operation of LEDs with For loop (repetitive)
Turning a led on and off is simple, few lines are run, but using many LEDs would make it tedious to configure and run each led.
That is why we make use of the FOR loop where we can parameterize the iterations that we want to be executed, that is, within a For loop we can establish the number of LEEDs that we want to configure (Output) and we can also establish the number of LEDs that in HIGH and LOW, generate sequences and thus, visually observe the play of lights.