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

Summary

In this chapter, we programmed the most common digital input component—a push button. At first, we wrote a program to check whether the push button is pressed or not. We found that it is not efficient programming practice. So, we wrote a program that uses an interrupt mechanism. In that program, we read from the input push button and based on the input value we responded to the output LED. That was a minimal example of an interactive embedded system. A similar setup can be done with any digital input source such as a keypad, slide button, or touch button. A digital input source can also be a sensor/chip that sends ON/OFF data. In the next chapter, we will use BeagleBone's special capability to deal with analog components. This will open ...

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