Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Beaglebone Python Programming

You're reading from   Learning Beaglebone Python Programming Unleash the potential of BeagleBone using Python

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781784399702
Length 196 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alexander C Hiam Alexander C Hiam
Author Profile Icon Alexander C Hiam
Alexander C Hiam
Arrow right icon
View More author details
Toc

GPIO modules


The BeagleBone Black has up to 69 different GPIO pins available on its expansion headers. These GPIO signals are controlled through four separate 32-signal GPIO modules, named GPIO0, GPIO1, GPIO2, and GPIO3. Each pin can either be put into output mode, where it can then be set to a 3.3 V high level or a 0 V low level, or input mode, where it can sense whether the level on the pin is high or low.

Kernel drivers

The GPIO modules inside microprocessors are typically controlled by reading and writing their memory registers directly. Like many other single board Linux computers, the BeagleBone provides a kernel driver which interacts with the GPIO memory registers for you, and is controlled via a sysfs interface.

Note

Sysfs is a virtual file system in the Linux kernel, consisting of special virtual files that provide input to and output from kernel drivers for configuring and controlling buses and devices.

The sysfs entries for the BeagleBone Black's GPIO driver reside in /sys/class...

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime
Banner background image