Microsoft MakeCode for Adafruit is a web-based code editor for physical computing. It provides a block editor, similar to Scratch or Code.org, and also a JavaScript editor for more advanced users. 

This means you can drag and drop functionality that triggers the Circuit Playground Express' onboard inputs without ever writing a single line of code. 

We've provided three different sample projects: one using the light sensor to turn a light on at dusk, one using the motion sensor to activate a light and then turn it off a few seconds later, and the sound sensor to make a "clapper" style toggle switch.

Once you decide what you'd like your project to do, you can edit the code to customize it with your own lights, sounds, and sensitivities. Then, click the Download button on the MakeCode site to download your customized code.

Plug the Circuit Playground into your computer and drag the downloaded file onto the CPLAYBOOT drive that appears to make the Circuit Playground run the code. 

This guide was first published on Apr 21, 2020. It was last updated on Apr 21, 2020.

This page (Code with MakeCode) was last updated on Apr 08, 2021.

Text editor powered by tinymce.