From the course: Learning CircuitPython with Circuit Playground Express

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Run programs on Circuit Playground Express (CPX)

Run programs on Circuit Playground Express (CPX) - Python Tutorial

From the course: Learning CircuitPython with Circuit Playground Express

Start my 1-month free trial

Run programs on Circuit Playground Express (CPX)

- [Instructor] Now that your Circuit Playground Express is set up with CircuitPython, it's time to have a little fun and run some demo programs. Running a CircuitPython program is as easy as copying the program's main.py file to the circuitpy drive. Then CircuitPython will restart and run the program. Let's go to the desktop to see how this works. You can see on the desktop here, I've got the circuitpy drive, which is our circuit playground express, and then a demos folder downloaded from the course exercise files. If I open up demos, you can see the four demos listed here each one is a directory. If I open up blink, you can see a main.py file inside. If I simply drag that file onto the circuitpy drive, you can see that the LED begins blinking next to the USB connector. That's all this demo does, is it blinks that LED. Want to do a quick example here, if you look at this main.py file, you can see it's just a text file.…

Contents