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

How to do it...

To do this, perform the following steps:

  1. Run the following lines of code in the REPL:
>>> from adafruit_circuitplayground.express import cpx
>>> cpx.pixels.fill(0x0000FF)
  1. You should see all 10 NeoPixels turn blue.
  2. Use the following code to turn off all 10 NeoPixels:
>>> cpx.pixels.fill(0x000000)