3.2 Digital I/O
In this section, we build a program to access Arduino Digital I/O. In this section, we need
the following components:
• Push button
When a push button is pressed, LED will ON.
The demo wiring is simple. Connect your LED to digital pin 8 and push button to digital pin
9. The complete wiring can be seen in Figure below.
A sample of hardware implementation is shown in Figure below.