Arduino Push Button LED Brightness Control
Using a push button control on an Arduino board to control an LED's brightness. Press the button to turn LED on. Hold it down to increase the LED's brightness until it reaches 100%. After reaching full brightness, the LED will return to 0% brightness and repeat.