← Back to Getting Started with CircuitPython

Say Hello Over the Console

Step 4

The serial console

That text streaming into the box below is your board's serial console. It's a live, two-way connection over the same USB cable that powers the board. Anything your code prints with print() shows up here, and starting with this step, anything you type in the box below gets sent back to the board too.

Tabs and new lines

You might notice \t and \n inside the strings in the code below. These are escape sequences: \t inserts a tab, and \n starts a new line, both without you needing to press Tab or Enter yourself. They're handy for lining text up in columns or splitting one string across multiple lines.

Not just this website

The website isn't doing anything special to make this happen. Any serial terminal program can read this same output. Our standalone Serial Monitor tool does exactly this and nothing else, and desktop programs like Mu, PuTTY, or screen can connect to your board the same way. VS Code also has a built-in serial monitor.

code.py
Disconnected