Can I change PWM duty cycle and frequency on the same pin?

@alexandru99
You may find the examples/discussion of this thread helpful.