AVR_PWM library Flicking duty cycle and frequency using potentiometer (nano)

I think the problem is in the scope trigger. It appears to lose when the PWM goes to 0 or 100%. Cut the range and see what happens.