Incrementally blinking led light after certain amount of time

If you are allowed to use external libraries, you could grab TDuino from github, and use something like this:

#include <TDuino.h>

#define LED_PIN LED_BUILTIN
#define LED_FLASH_TIME 1000
#define BLINK_INTERVAL 600000

void timerCallback(byte timerId); //Forward declaration

unsigned int numBlinks = 1; //Number of blinks
TTimer timer(timerCallback); //Timer used for timing
TPinOutput led(LED_PIN); //PinOutput used for blinking

void timerCallback(byte timerId)
{
  //Set the LED to pulse with the specified interval for "numBlinks" times
  led.pulse(LED_FLASH_TIME, numBlinks);
  
  //Increment number of blinks for next time
  numBlinks++;
}

void setup()
{
  //Setup objects
  timer.setup();
  led.setup();
  
  //Set the timer to trigger for each 10 minutes, 0 = repeat forever
  timer.set(BLINK_INTERVAL, 0);
}

void loop()
{
  //Loop objects
  timer.loop();
  led.loop();
}

The code is untested, so it may not work at all :slight_smile: