- MicroPython Cookbook
- Marwan Alsabbagh
- 47字
- 2021-06-24 14:28:03
How to do it...
To do this, perform the following steps:
- Run the following lines of code in the REPL:
>>> from adafruit_circuitplayground.express import cpx >>> cpx.pixels.fill(0x0000FF)
- You should see all 10 NeoPixels turn blue.
- Use the following code to turn off all 10 NeoPixels:
>>> cpx.pixels.fill(0x000000)