Go to the website MakeCode.com to program your Circuit Playground Express to light up your NeoPixel Strip
MakeCode will save your coding programs in the browser memory, so be sure to save your programs first before clearing your browser history.
Set Up the Lights
When on the Adafruit Makecode site, start a New Project.
Click the LOOPS button and drag an
on start block into your workspace. This tells your Circuit Playground Express what the the first action will be when you power it up.
Next, click the LIGHT button, and a new NEOPIXEL button will appear below the LIGHT button. Click NEOPIXEL. Then drag the
set strip to
create strip on A1 with 30 pixels block and put it inside your
on start block. This links your 30 pixel NeoPixel Light Strip with the circuit board via the A1 port.
Scroll way down the NEOPIXEL tab and find the
strip show frame of animation block. Drag this into the
forever block. This will tell the circuit board to light up the strip.
Lastly, choose the type of light animation you want to play on your strip. There are six options:
- running lights
- color wipe
- theater chase