2 codes in 1 software

Hi!

I have made 2 different softwares in Arduino IDE. I want to make a software like: first code
delay(500000)
second code

How i can call that 2 softwares in one?

I have made 2 different softwares in Arduino IDE.

You've shown 0 of them.

I want to make a software like: first code
delay(500000)
second code

Feel free.

How i can call that 2 softwares in one?

Without seeing your code? No clue.

If one sketch is for reading RFID cards, and one is for watering plants, why do you want to combine them? Why the 6 minute and 20 second delay? Seems like a strange interval.

What happens when the second code finishes? The first will be run again, immediately. Is that OK?

The full software will run non-stop.Software will run the first code(wich contain functions), than wait 5 minutes , than run the second code. When the second code is end, repeat non- stop the full code.

florin:
The full software will run non-stop.Software will run the first code(wich contain functions), than wait 5 minutes , than run the second code. When the second code is end, repeat non- stop the full code.

So...what's the problem? What prevents you from doing this?

void loop()
{
  code1();
  delay(500000)
  code2();
}

I need to run first code for a time interval, than code 2 for another time interval.

Have a look at the blink without delay example, without delay.

I have made a circuit for the code below:

void loop(){

time=millis();

while(millis()-time<10000) 
{
    first code
}

time=millis();  

while(millis()-time<10000)
{
   
}

}

The circuit run the first code for ten seconds, than the second code for 10 second, than first code for ten 10 seconde and than STOP. Why?

Can't say without seeing all your code (post it all, please), but at a guess you may have declared time as an int instead of an unsigned long. At least that is what usually causes weird behavior during the first 30 seconds after startup.

-br