Hi i need to blink led with two time interval using millis() function. the led blink like aeroplane blink its LED.
see the below code written in delay() function.
int led=13;
Se how far you get based on that information. If you get stuck please post the program that represents your best attempt and tell us in detail what it actually does and what you want it to do that is different. That way we can focus on the parts you need help with rather than wasting time on things that you can do.
The more general one is to define an unsigned long array of the times
unsigned long times[4] = {50, 50, 50, 1000};
/// led on, off, on, off,
Define a millisDelay timer and an index into the array.
starting at index 0, i.e. the 50.
start the millisDelay timer with this value times[index]
when the timer times out toggle the led and increment the index
loop the index back to zero if the increment == 4.
start the timer again with the next value in the array,
Using an array make it easy to modify the times and add more if needed.