Program for measuring the duty cycle of a PWM signal using Timer/Counter 1 from Arduino Uno