// Define the LED pins
int ledPins[] = {2, 3, 4, 5, 6, 7}; // Pins connected to LEDs
int delays[] = {1000, 2000, 3000, 4000, 5000, 6000}; // Delays in milliseconds
void setup() {
// Set each LED pin as an OUTPUT
for (int i = 0; i < 6; i++) {
pinMode(ledPins[i], OUTPUT);
}
}
void loop() {
// Blink each LED with its corresponding delay
for (int i = 0; i < 6; i++) {
digitalWrite(ledPins[i], HIGH); // Turn the LED on
delay(delays[i]); // Wait for the corresponding delay
digitalWrite(ledPins[i], LOW); // Turn the LED off
delay(delays[i]); // Wait again before next iteration
}
}