// pin numbers for the LEDs
const int fastBlinkLedPin = 13;
const int slowBlinkLedPin = 8;
//Interval for fast blinking LED(in milliseconds)
const long fastBlinkInterval = 500;//500 ms
//Interval for slow blinking LED(in milliseconds)
const long slowBlinkInterval = 1500;// 1500 ms
void setup(){
//Initialize the LED pins at outpurs
pinMode(fastBlinkLedPin, OUTPUT);
pinMode(slowBlinkLedPin, OUTPUT);
}
void loop() {
//Blink fast LED 5 times
for (int i = 0; i < 5; i++) {
digitalWrite(fastBlinkLedPin, HIGH); //Trun fast LED on
delay(fastBlinkInterval / 2); // Wait half the interval
digitalWrite(fastBlinkLedPin, LOW); //Turn fast LED off
delay(fastBlinkInterval / 2); // Wait half the interval
}
// Blink slow LED 3 times
for (int i =0; i < 3; i++) {
digitalWrite(slowBlinkLedPin, HIGH); //Trun fast LED on
delay(slowBlinkInterval / 2); // Wait half the interval
digitalWrite(slowBlinkLedPin, LOW); //Trun fast LED off
delay(slowBlinkInterval / 2); // Wait half the interval
}
//Add a delay before repeating the pattern
delay(1000); // 1 second delay between patterns
}