Use the potentiometer to control the brightness of the LED.
TimeThis project won't take all of 2 minutes. But if you use lots of LEDs, it can take more than 5 minutes. OK, don't lose your time.
Let's experience now!NOTE: The potentiometer and the LEDs need to use Analog pins or the Digital pins marked with the ~ mark.
First, connect the LED to pin 6 and the potentiometer to pin 5. Next, connect the LED and the potentiometer resistor if required. Wire up the power and the Ground pin. Now, open the sample code and deploy it!
Comments
Please log in or sign up to comment.