Lesson 9-b: Using Switches and Push Buttons with Arduino

Video thumbnail for Lesson 9-b: Using Switch and Push Buttons with Arduino

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.

Code Snippets

Comments will be displayed here.