This recipe demonstrates a technique that can be used to endlessly generate random colors. We will then use these random colors on a specific NeoPixel. Adding randomness to the color section can make projects more interesting, as you can never predict the exact sequence of colors that will appear as your script executes.
Generating random NeoPixel LED colors
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.
How to do it...
To do this, perform the following steps:
- Run the following lines of code in...