Hi,
I need a way to start and stop the timer1 attach function in my loop.
The function:
Timer1.attachInterrupt(myFunction, Period)
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?
Thanks