We've just covered the software side of GPIO, so now we will turn our attention to the electronics side. The Raspberry Pi provides many standard ways to interface both simple and complex electronics. Often, your choice of electronic components and modules will dictate which interfacing technique you need to use, while sometimes you may get a choice.
Irrespective of whether you have a choice, your knowledge of the different options will help you to understand the how and why behind a circuit and its accompanying code and help you to diagnose and resolve any issues you may encounter.
In the following section, we will explore the concepts, followed by a practical exercise. We'll start with digital IO.