Hi everyone,
I'm just getting started with my Arduino Uno and was curious as to how to use a timer interrupt. Simply put, I want my program to wait for use to type a number into the serial port, and after a certain time, I want to turn on an LED.
I understand how to set up the timer and interrupt, but I wasn't sure how to make sure the timer starts at zero when the user signals to start. (My ISR currently just signals a flag once the timer is tripped, but I don't know if the timer starts counting at zero or if it just continues from whatever timing it's currently at.)
I apologize if this is a really simple question -- it's my first time doing this kind of thing!
Thanks!