© Stewart Watkiss 2020
S. WatkissLearn Electronics with Raspberry Pihttps://doi.org/10.1007/978-1-4842-6348-8_4

4. Using Python for Input and Output: GPIO Zero

Stewart Watkiss1 
(1)
Redditch, UK
 

This chapter is going to look at lights – in particular, how lights can be controlled from the Raspberry Pi. This will control some fun disco lights and projects using multi-color LEDs; these are also known as RGB LEDs or a brand you may have heard of as NeoPixels from Adafruit. In the process, you will get to learn about the most important electronic component, the transistor. You will get to use some different types of transistors to switch lights on that would need more current than the Raspberry Pi can provide.

In Chapter 3, the projects used the graphical ...

Get Learn Electronics with Raspberry Pi: Physical Computing with Circuits, Sensors, Outputs, and Projects now with O’Reilly online learning.

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