Working with Buttons
In this section you’ll learn how pushbuttons work in principle and how you can use them with an Arduino. We’ll start small and build a circuit that uses a pushbutton to control a single LED.
The following picture shows a simple circuit using a pushbutton. Connect pin 7 (chosen completely arbitrarily) to the pushbutton, ...
Get Arduino: A Quick-Start Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.