In this section, we will investigate two alternative GPIO libraries and ways to make an LED flash in Python, including the following:
- The GPIOZero library: An entry-level GPIO library
- The PiGPIO library: An advanced GPIO library
As we learn to use these two libraries, we will see how they approach GPIO control differently and discover their relative strengths and weaknesses.
After completing this section (and the following section, Exploring two ways to integrate a push button in Python), you will have explored and compared two very different approaches to GPIO control—the high-level (using GPIOZero) and a lower-level (using PiGPIO)—and have a good introductory grasp of when and how you would choose between the alternative when building an electronic interfacing program.
Let's start our practical exercises by making the LED blink using GPIOZero.