O'Reilly logo

Learning BeagleBone Python Programming by Alexander Hiam

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 3. Digital Outputs

In this chapter, you will learn the basics of GPIO outputs and driving LEDs, as well as some of the features of the Cloud9 IDE. We will cover the following topics:

  • How GPIO pins are configured
  • Using the Python interactive prompt to control digital outputs
  • Calculating current limiting resistor values for LEDs
  • Using NPN transistors to drive LEDs from GPIO pins
  • Blinking an LED continuously with a Python program
  • Running multiple programs at once to blink multiple LEDs
  • Running programs on startup

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 ...

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