I need a way to start and stop the timer1 attach function in my loop. The function:
is declared in the setup routine. I have the period to 1000 micro seconds, because I need this myFunction to run every ms. However I need a way to enable and disable this functionality of timer1 in my loop routine.
Any ideas? or a better way?