- MicroPython Cookbook
- Marwan Alsabbagh
- 76字
- 2021-06-24 14:28:04
Setting a range of NeoPixels to one color
This recipe will explore how the slicing feature can be used to set a specific range of pixels to a specific color. This can be quite useful when you want to turn the ring of pixels into a gauge to show the level of a value from 1 to 10. Essentially, it provides a clearer and simpler way of setting a range of pixels to a particular color.