#define LED_PIN 25
void setup() {
Serial1.begin(115200);
pinMode(LED_PIN, OUTPUT);
Serial1.println("Starting LED Blink Program");
}
void loop() {
for (int minute = 1; minute <= 3; minute++) {
int blinkCount = minute * 10;
int delayTime = (60000 / blinkCount) / 2;
Serial1.print("Minute: ");
Serial1.print(minute);
Serial1.print(", Blinks: ");
Serial1.println(blinkCount);
for (int i = 0; i < blinkCount; i++) {
digitalWrite(LED_PIN, HIGH);
delay(delayTime);
digitalWrite(LED_PIN, LOW);
delay(delayTime);
}
}
while (true);
}