how to return to main loop instead of function after interrupt?

holmes4:
you need to design the program correctly in the first place - see blink without delay.

Mark

\

..and post your entire code in quotation marks after you auto format it...