Interrupts from the timer-counter of the microcontroller can be caused both at overflow of the counter, and at coincidence with the value written down in the register register TCNTx. The use of timer-count interrupts allows you to avoid the use of delays connected by the library delay.h, and thus unload the microcontroller. Settings and connection are made by setting the corresponding bits in the TIMSK register.