Hi all, I am new to the Ardunio programming, a total of 1 day experience. I am writing this code to work as a 1s up counter. I have the counter working but now I need to attach a button so that when pressed once it will halt the counter, pressed twice counter continues. I am using an attach interrupt to achieve this. My code stops the counter when pressed but only does so while the button is being pressed. I would like it to stop when pressed once and then continue when pressed again. Any help would be appreciated.
gd_Tf_3.ino (2 KB)