The following program can be used control the brightness of LED using a potentiometer. The program reads analog input and changes the PWM value on the basis of it.

Dependencies:   mbed

Auto generated API documentation and code listings for LED_Control_Using_Potentiometer

Code

main.cpp [code]