//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 as outputs
pinMode(fastBlinkLedPin, OUTPUT);
pinMode(slowBlinkLedPin, OUTPUT);
}
void loop() {
// Blink fast LED 5 times
for (int i = 0; i < 5; i++) {
digitalWrite(fastBlinkLedPin, HIGH); // Turn fast LED on
delay(fastBlinkInterval / 2); // wait half the interval
digitalWrite(fastBlinkLedPin, LOW); // Turn fast LED off
delay(fastBlinkInterval / 2); // waith half the interval
}
// Blink slow LED 3 times
for (int i = 0; i < 3; i++) {
digitalWrite(slowBlinkLedPin, HIGH); // Trun slow LED on
delay(slowBlinkInterval / 2); // wait half the interval
digitalWrite(slowBlinkLedPin, LOW); // Turn slow LED off
delay(slowBlinkInterval / 2); // wait half the interval
}
// Add a delay before repeating the pattern
delay(1000); // 1 second delay between pattern
}