Create a circut that can control the brightness of an LED based on the position of a potentiometer. It should be possible to set the LED’s brightness from unlit to completly lit. Set the brightness of the LED by simulating pulse width modulation on a digital pin. Your program should use good code style including functions and comments. See the Arduino Language Reference if you need help with the syntax.
Submission
Please show your source code and demonstrate your circuit during class on Tuesday January 27th.