suggestions for code

Blink 2 led independently with time adjustable ()each with a different ON and OFF period), {ALL THIS FOR A ADJUSTABLE SET TIME OF PERIOD AND END},and if possible .without delay() function

There are a few ways to make it, but they all use millis().
Try to blink one led with millis(), and add the other led to it.

IT IS A CONTINUOUS LOOP >>>>> {ALL THIS FOR A ADJUSTABLE SET TIME OF PERIOD AND END}???

// Which pins are connected to which LED
const byte greenLED = 12;
const byte redLED = 13;

// Time periods of blinks in milliseconds (1000 to a second).
const unsigned long greenLEDinterval = 500;
const unsigned long redLEDinterval = 1000;

// Variable holding the timer value so far. One for each "Timer"
unsigned long greenLEDtimer;
unsigned long redLEDtimer;

void setup () 
  {
  pinMode (greenLED, OUTPUT);
  pinMode (redLED, OUTPUT);
  greenLEDtimer = millis ();
  redLEDtimer = millis ();
  }  // end of setup

void toggleGreenLED ()
  {
   if (digitalRead (greenLED) == LOW)
      digitalWrite (greenLED, HIGH);
   else
      digitalWrite (greenLED, LOW);

  // remember when we toggled it
  greenLEDtimer = millis ();  
  }  // end of toggleGreenLED

void toggleRedLED ()
  {
   if (digitalRead (redLED) == LOW)
      digitalWrite (redLED, HIGH);
   else
      digitalWrite (redLED, LOW);

  // remember when we toggled it
  redLEDtimer = millis ();  
  }  // end of toggleRedLED

void loop ()
  {

  // Handling the blink of one LED.
  if ( (millis () - greenLEDtimer) >= greenLEDinterval)
     toggleGreenLED ();

  // The other LED is controlled the same way. Repeat for more LEDs
  if ( (millis () - redLEDtimer) >= redLEDinterval) 
    toggleRedLED ();

/* Other code that needs to execute goes here.
   It will be called many thousand times per second because the above code
   does not wait for the LED blink interval to finish. */

}  // end of loop

love7007:
IT IS A CONTINUOUS LOOP >>>>> {ALL THIS FOR A ADJUSTABLE SET TIME OF PERIOD AND END}???

Please don't SHOUT.

love7007:

// Which pins are connected to which LED

const byte greenLED = 12;
const byte redLED = 13;

// Time periods of blinks in milliseconds (1000 to a second).
const unsigned long greenLEDinterval = 500;
const unsigned long redLEDinterval = 1000;

// Variable holding the timer value so far. One for each "Timer"
unsigned long greenLEDtimer;
unsigned long redLEDtimer;

void setup ()
 {
 pinMode (greenLED, OUTPUT);
 pinMode (redLED, OUTPUT);
 greenLEDtimer = millis ();
 redLEDtimer = millis ();
 }  // end of setup

void toggleGreenLED ()
 {
  if (digitalRead (greenLED) == LOW)
     digitalWrite (greenLED, HIGH);
  else
     digitalWrite (greenLED, LOW);

// remember when we toggled it
 greenLEDtimer = millis ();  
 }  // end of toggleGreenLED

void toggleRedLED ()
 {
  if (digitalRead (redLED) == LOW)
     digitalWrite (redLED, HIGH);
  else
     digitalWrite (redLED, LOW);

// remember when we toggled it
 redLEDtimer = millis ();  
 }  // end of toggleRedLED

void loop ()
 {

// Handling the blink of one LED.
 if ( (millis () - greenLEDtimer) >= greenLEDinterval)
    toggleGreenLED ();

// The other LED is controlled the same way. Repeat for more LEDs
 if ( (millis () - redLEDtimer) >= redLEDinterval)
   toggleRedLED ();

/* Other code that needs to execute goes here.
  It will be called many thousand times per second because the above code
  does not wait for the LED blink interval to finish. */

}  // end of loop

That seems OK, although it could be tidied up. Have you got a question ?

const byte ledPins[] = {10, 11};
const unsigned long intervals[] = {500, 1000};
unsigned long periodStartTimes[2];

void setup ()
{
  pinMode (ledPins[0], OUTPUT);
  pinMode (ledPins[1], OUTPUT);
}

void loop ()
{
  for (int led = 0; led < 2; led++)
  {
    if (millis() - periodStartTimes[led] >= intervals[led])
    {
      digitalWrite(ledPins[led], !digitalRead(ledPins[led]));
      periodStartTimes[led] = millis();
    }
  }
}

love7007:
IT IS A CONTINUOUS LOOP >>>>> {ALL THIS FOR A ADJUSTABLE SET TIME OF PERIOD AND END}???

Any more of this caps lock, and I'm locking this thread.

How to use this forum

Have you looked at the demo several things at a time ?

...R