O'Reilly logo

Learn Electronics with Raspberry Pi: Physical Computing with Circuits, Sensors, Outputs, and Projects by Stewart Watkiss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required