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

Thanks folks i did check the pot and made sure everything was working correctly @jremington it was fine.

I ended up using a different pwm library @marco_c i checked out the MD_pwm but saw that it limited the frequency to a max of 300Hz.

The library was just called PWM. This gave me the rock solid 330hz i was looking for without all that fluctuation.

Much appreciated for all you help