sir
in the part of code in photo
please explain in image what is set_PWM() function i know that we loading the output compair register of timers
that is
OCR1A = width_value; // Set pin 9 PWM duty cycle
OCR1B = width_value; // Set pin 10 PWM duty cycle
OCR2A = width_value; // Set pin 11 PWM duty cycle
but why we are loading these registors