// 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() {
// Start serial communication
Serial.begin(9600);
// Set each LED pin as an OUTPUT
for (int i = 0; i < 6; i++) {
pinMode(ledPins[i], OUTPUT);
}
// Display initial message on serial monitor
Serial.println("Starting LED blink sequence...");
}
void loop() {
// Blink each LED with its corresponding delay
for (int i = 0; i < 6; i++) {
Serial.print("Blinking LED ");
Serial.println(i + 1); // Display which LED is blinking
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
}
}