Switching between 2 programs via button

Dear Sir!

I want to 2 different codes in one arduino and switching via button between 2 programs.

Plz! Help.

Regards:
Malik Shahzad Ali

Code1.txt (2.19 KB)

Code2.txt (7.19 KB)

Arduinos don't work like that. You could have one program that does two different things depending on a button or switch. But it's your job to combine the two existing programs into one.

Steve