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

Chapter 4. Controlling LED Using a Push Button

In the previous chapter, we wrote programs that were instructing LEDs to be on or off in pattern. LEDs are output devices. BeagleBone provides some information to us through LEDs, for example, by default the USER1 LED is turned on when the SD card is accessed. Sometimes, we want to give some information to BeagleBone, such as send an e-mail or send SMS. We need to use an input electronic component that will pass our information to BeagleBone. The most common input component used in the embedded world is the push button. BeagleBone has three small push buttons onboard. But they are already assigned to system critical work. So, we will use an external push button to convey our message to BeagleBone ...

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