Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Programming the BeagleBone

You're reading from   Programming the BeagleBone Master BeagleBone programming by doing simple electronics and Internet of Things projects

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784390013
Length 180 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Chavan Chavan
Author Profile Icon Chavan
Chavan
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Cloud9 IDE FREE CHAPTER 2. Blinking Onboard LEDs 3. Blinking External LEDs 4. Controlling LED Using a Push Button 5. Reading from Analog Sensors 6. PWM – Writing Analog Information 7. Internet of Things with BeagleBone 8. Physical Computing in Python 9. UART, I2C, and SPI Programming 10. Internet of Things using Python A. GPIO Control in Bash B. BeagleBone Capes
C. Pinmux and the Device Tree Index

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/node.js. It is assumed that you have gone through the earlier chapters. A good knowledge of the theory from Chapter 2, Blinking Onboard LEDs up to Chapter 6, PWM – Writing Analog Information is essential to get the most...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Programming the BeagleBone
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime
Modal Close icon
Modal Close icon