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