O'Reilly logo
  • Bill Levien thinks this is interesting:

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...


Cover of Getting Started with Arduino, 2nd Edition


EXTRA Credit: More LEDs using a shift register