MakeCode is a web-based code editor for physical computing made by Microsoft.
More on MakeCode for Adafruit boards here.
Head over to https://makecode.adafruit.com/ and create a new project.
Click the button below to access the code for this project.
Now that we have the code for the project, we need to upload it to the CPX.
Let's name our file and download it.
- Choose a name at the bottom of the page.
- Then click the pink Download button.
Follow the directions and connect your CPX to your computer via the usb cable. Click the CPX Reset button once to go into programming mode (all NeoPixels will turn green).
In some cases, you may need to press the reset button twice to get into programming mode.
Next, look for the file in your downloads folder and drag it onto your CPLAYBOOT drive that should have showed up in your file manager/finder when you plugged in your board and entered programming mode.
You should now see the CPLAYBOOT drive disappear.
The code should now be running and the NeoPixels should be all red. Before we test it out let's wire up the servo!