I make program that works fine but when i press the stop button it does not stops immediately but waits for 4 to 6 seconds and after that stops .It is because i have counters in the program. Please help me to resolve this problem. I attach the program with two comments in it one for stop button and one for one of the modes.
If you do not understand something please write I will explain.
FINAL100.ino (8.73 KB)