O'Reilly logo

Internet of Things with Python by Gastón C. Hillar

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. Interacting with Digital Outputs with Python

In this chapter, we will work with digital inputs with Python and two libraries: mraa and wiring-x86. We shall:

  • Wire our first connections between an Intel Galileo Gen 2 and a breadboard with electronic components
  • Write a first version of a Python script that turns on and off electronic components connected to the board
  • Transfer Python code to the Yocto Linux running on the board
  • Execute Python scripts that interact with the board
  • Learn to take advantage of Python's object-oriented features to improve the code and make it easier to understand
  • Prepare the code to make it easy to build an API that will allow us to interact with the IoT device

Turning on and off an onboard component

First, we will take ...

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