← Back to Getting Started with CircuitPython

Stop a Running Program with Ctrl+C

Step 6

Stopping a program

Some programs are meant to run forever. The code below counts upward in an endless loop and never finishes on its own. Click Connect, then Run on Device, and the program will never end.

To get control back, click the Ctrl+C button. You should see the counting stop and the board return to its idle prompt.

code.py
Disconnected