Arduino Timer and Interrupt Tutorial - Oscar Liang
Blinking LED with compare match interrupt The first example uses the Timer1 in CTC mode and the compare match interrupt to toggle a LED. The timer is configured for a frequency of 2Hz. The LED is toggled in the