This Arduino code uses for loops to turn on and off 5 digital pins in sequence. The setup function uses a for loop to set the first 5 pins as outputs. The main loop contains two for loops, one to light each pin for 200ms from pin 1 to 5, and another to turn them off backwards from pin 5 to 1.
This Arduino code uses for loops to turn on and off 5 digital pins in sequence. The setup function uses a for loop to set the first 5 pins as outputs. The main loop contains two for loops, one to light each pin for 200ms from pin 1 to 5, and another to turn them off backwards from pin 5 to 1.
This Arduino code uses for loops to turn on and off 5 digital pins in sequence. The setup function uses a for loop to set the first 5 pins as outputs. The main loop contains two for loops, one to light each pin for 200ms from pin 1 to 5, and another to turn them off backwards from pin 5 to 1.