MicroPython Cookbook
上QQ阅读APP看书,第一时间看更新

Displaying an LED color using the RGB and hex code

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.