© Stewart Watkiss 2016

Stewart Watkiss, Learn Electronics with Raspberry Pi, 10.1007/978-1-4842-1898-3_4

4. Using Python for Input and Output: GPIO Zero

Stewart Watkiss

(1)Redditch, UK

This chapter is going to look at lights. Not just any old boring desk lamp, though, the chapter looks at how lights can be controlled by the Raspberry Pi. You are going to connect some fun disco lights and projects using bright LEDS. In the process, you will learn about the most important electronic component, the transistor. You will use some different types of transistors to switch lights on that need more current than the Raspberry Pi can provide.

In Chapter 3, the projects used the graphical programming environment Scratch, but from here on you are going to be ...

Get Learn Electronics with Raspberry Pi: Physical Computing with Circuits, Sensors, Outputs, and Projects 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.