void setup(){
pinMode(LED_BUILTIN,OUTPUT);
}
void blink_led(int times){
for(int i = 0; i < times; i++){
digitalWrite(LED_BUILTIN, HIGH);
delay(300);
digitalWrite(LED_BUILTIN,LOW);
delay(300);
}
}
int main() {
int minute = 0;
while (1) {
if (minute < 1) {
// Blink 10 times in the first minute
blink_led(10);
} else if (minute < 2) {
// Blink 20 times in the second minute
blink_led(20);
} else {
// Blink 30 times in the third minute
blink_led(30);
}
// Wait for a minute
sleep_ms(10000);
minute++;
}
return 0;
}