Push button LED circuit setup
For this exercise, we will need:
4-pin push button
Male-to-male jumper wires
Half-size breadboard
LED
470Ω resistor
![](https://static.packt-cdn.com/products/9781784390013/graphics/Image0013_04_02.jpg)
Power off the board and attach components to BeagleBone as shown in the preceding diagram.
Circuit analysis
This circuit is a combination of a push button circuit and the blinking LED circuit we studied earlier. P9_3
, push-button and P8_16
create a push button input circuit. P8_10
, LED and P8_1
create LED output circuit. Both circuits are independent. Our program listens to input circuit and responds on the output circuit.