In this recipe, you will learn how to control the pixels on the board using the NeoPixel object. We covered a lot of the methods in this object in previous chapters, but this is the first time we will directly create a NeoPixel object. It’s useful to have the skills to directly use the NeoPixel object, instead of accessing it through another object. You will need these skills if you decide to add an additional ring or strip of pixels to your project. In those cases, you will need direct access to this object to control the pixels.
Using the NeoPixel object to control pixels
Getting ready
You will need access to the REPL on Circuit Playground Express to run the code presented in this recipe.