There is a common convention to express any color using the hex code, which works by representing the red, green, and blue components of the color. This recipe demonstrates how to set the color of a NeoPixel using this hex code convention. Using such a popular convention will be useful when you want to apply specific color settings from other applications on the web or your desktop.
Displaying an LED color using the RGB and hex code
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.