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