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 8. Physical Computing in Python

We used JavaScript language to program BeagleBone untill now. Now we'll focus on another popular language for programming BeagleBone—Python. It is a general purpose, widely adopted, high level language. It is easy to do coding in Python. Similar to BoneScript, there is a Python library from Adafruit that can do GPIO/Analog IO for BeagleBone. There is also an alternative library available called PyBBIO, which strongly follows the Arduino style of coding. As Adafruit's library is very similar to the BoneScript we learned earlier, we will follow it to code in Python throughout the book.

In this chapter, we will do many physical computing exercises in Python that we did in earlier chapters using JavaScript/

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