LED Blinky Pattern

plesae help me for this programme.
different 3 LED connect with 3 pins and i want to blink as below

1LED(delay 5sec) -> 2LED (delay 5sec) -> 3LED (delay 5sec) -> all LED off [10 times]
1LED(delay 4sec) -> 2LED (delay 4sec) -> 3LED (delay 4sec) -> all LED off [10 times]
1LED(delay 3sec) -> 2LED (delay 3sec) -> 3LED (delay 3sec) -> all LED off [10 times]
1LED(delay 2sec) -> 2LED (delay 2sec) -> 3LED (delay 2sec) -> all LED off [10 times]
1LED(delay 1sec) -> 2LED (delay 1sec) -> 3LED (delay 1sec) -> all LED off [10 times]

Prit123:
plesae help me for this programme.

Have you carefully studied the code in the links in Reply #5

Have you tried to apply the techniques to your own problem?

...R

EDIT to add the links
Serial Input Basics - simple reliable ways to receive data.
Planning and Implementing a Program

@prit123... this thread was started by someone else for their own question..
It’s impolite to hijack it for your own purpose!
Please start a new topic describing your problem, and people will help you there.

lastchancename:
It’s impolite to hijack it for your own purpose!

I posted Reply #7 because it doesn't seem to me to be a hijack if the Thread has been dead for 2 years.

On the other hand I assume that someone who attaches a new question to an old Thread will have carefully studied all of the earlier content of the Thread before posting the question.

...R

Thread split.

Prit123:
plesae help me for this programme.
different 3 LED connect with 3 pins and i want to blink as below

1LED(delay 5sec) -> 2LED (delay 5sec) -> 3LED (delay 5sec) -> all LED off [10 times]
1LED(delay 4sec) -> 2LED (delay 4sec) -> 3LED (delay 4sec) -> all LED off [10 times]
1LED(delay 3sec) -> 2LED (delay 3sec) -> 3LED (delay 3sec) -> all LED off [10 times]
1LED(delay 2sec) -> 2LED (delay 2sec) -> 3LED (delay 2sec) -> all LED off [10 times]
1LED(delay 1sec) -> 2LED (delay 1sec) -> 3LED (delay 1sec) -> all LED off [10 times]

Easy!

const byte LEDCount = 3;
const byte LED_DOPins[LEDCount] = {2, 3, 4};


void setup()
{
  // Set pinMode() and initial state LOW
  for (int i = 0; i < LEDCount; i++)
  {
    digitalWrite(LED_DOPins[i], LOW);
    pinMode(LED_DOPins[i], OUTPUT);
  }


  // For delays of 5, 4, 3, 2, and 1 seconds...
  for (unsigned seconds = 5; seconds > 0; seconds--)
  {
    // Repeat ten times...
    for (int repeat = 0; repeat < 10; repeat++)
    {
      // Turn on each LED in turn with the delay after each...
      for (int led = 0; led < LEDCount; led++)
      {
        digitalWrite(LED_DOPins[led], HIGH);
        delay (seconds * 1000);
      }
      // Then turn all LEDs off
      for (int i = 0; i < LEDCount; i++)
      {
        digitalWrite(LED_DOPins[i], LOW);
      }
    } // End repeat
  } // End seconds
}


void loop() {}