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

Get Internet of Things with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.