Using Python for Input and Output: GPIO Zero
This chapter is going to look at lights. Not just any old boring desk lamp, though, the chapter looks at how disco 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.