O'Reilly logo

Programming the BeagleBone by Yogesh Chavan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
Push button LED circuit setup

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required