Which timer library can perform different interval

Please check the example simple blink code below:

void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1500);
}

I can't find any timer library to do the same thing. All the lib I can find is to do the simple blink with the same interval but no one can perform different interval.

The only lib I can find which most fit my need is sstimer but lack of the on/off function, I can't control the timer manually ...

Any suggestions?

Any suggestions?

Write your own.

Why you think you need a library to do a relatively simple task escapes me. Perhaps its because the task isn't nearly as simple as you think.

Start by making a list off all the things you want the library to do.

If you are convinced that you need to use a library then look at PinToggle library

PaulS: Write your own.

Why you think you need a library to do a relatively simple task escapes me. Perhaps its because the task isn't nearly as simple as you think.

Start by making a list off all the things you want the library to do.

I have wrote my own code and run perfectly, just wondering if someone finished the wheel that we don't need to build another one.

UKHeliBob: If you are convinced that you need to use a library then look at PinToggle library

Thanks you, I will check it out.

Something like that is best handled yourself (no library) using millis() (see blink without delay example, or the "doing multiple things at once")