Pin configurations and precautions for using the GPIO pins

The general-purpose input/output, or GPIO, on the Raspberry Pi Zero is the port for interacting with the physical world. Not only can you control things such as motors and lights, but you can also read data from things such as thermometers or light sensors. The GPIO can read information or send commands, and you can use programs such as C or Python to handle the logic for what to do.

Getting ready

This is the point where we will start integrating other devices over the GPIO pins. While you don't have to do anything for this recipe except have your Raspberry Pi Zero up and running, you will probably want to attach a header and, ideally, a breadboard cobbler to prepare for the upcoming recipes. ...

Get Raspberry Pi Zero Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.