How to use a potentiometer to change the duty cycle of a PWM signal

Dependencies:   mbed

no such method: docs