Using a Pushbutton to Control the LED
Blinking an LED was easy, but I don’t think you would stay sane if your desk lamp were to continuously blink while you were trying to read a book. Therefore, you need to learn how to control it. In our previous example, the LED was our actuator, and our Arduino was controlling it. What is missing to complete the picture is a sensor.
In this case, we’re going to use the simplest for...
EXTRA Credit: More LEDs using a shift register
Share this highlighthttp://www.safaribooksonline.com/a/getting-started-with/221848/