MakeCode is this programming editor that runs in the Google Chrome web browser. It’s has an intuitive interface that’s both block based and a text editor.
It works with Adafruit's CRICKIT and Circuit Playground Express so you can make interactive projects with the on-board sensors and components. You can drag & drop blocks to make interactive programs using lights and sounds without having to solder or learning a new syntax.
You can alternatively upload code directly to the Circuit Playground Express with WebUSB, see the steps to do so here.
The code for this project only takes ten blocks! You can download the code by clicking the green button below.
To get started, we'll need to head over to the Adafruit MakeCode website and follow the steps below.
- Plug in your Circuit Playground Express with a known good data+power USB Cable
- Press the RESET button. Green light means you're ready to MakeCode
- Download the UF2 file and drop it onto CPLAYBOOT.
- If you see a flash drive named CIRCUITPY, press reset twice to get to the CPLAYBOOT drive.
On the MakeCode Adafruit site, click on New Project. In the list of blocks, select ADVANCED and then EXTENSIONS. Click on the Crickit block that shows up and install Crickit support! You will now have a new CRICKIT bin of blocks you can use!
Continue on to learn how to use these blocks. Read the full guide here for more info.
Once you have your CPX setup with the MakeCode UF2, try testing it out by uploading the code to the board. Click the green button above to open up the program in MakeCode. Click on the pink edit icon near the top of the title to open the code in the full editor. This will create a project in MakeCode and allow you to edit, modify and upload the code to the board.
With WebUSB, the code edit will upload directly to the Circuit Playground Express without the need to drag and drop file onto it!
Follow the instruction to set up your board and you'll be able to quickly send code to Circuit Playground Express!