
Lesson 9-b: Using Switches and Push Buttons with Arduino
We learn how to turn on a light-emitting diode (LED) using a push-button switch. The LED will turn on when you push the switch. When you release the push-button switch, the LED will stay on for the time set in variable delayLED
. This value is in milliseconds. It is set to 3000ms, which is 3 seconds.
Comments will be displayed here.