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

Generating random NeoPixel LED colors

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.