Basic orientation in ESP IDE¶
ESP IDE is an environment for building programs from blocks and writing Python. You can send the program to the connected board with the corresponding firmware or try it in the simulator directly in the browser.
This section takes you through the main screen and all the new menu items. You can find details about specific blocks in the block catalog.
What are you looking for?¶
| I want to… | Where to start |
|---|---|
| Try the first program without the board | First Run |
| Start, stop or undo an edit | Most Important Buttons |
| Open, save or share a project | Project Menu |
| Select processor or connect device | Device Menu |
| Change language, appearance, backups or debugging | Settings Menu |
| Find the error by stepping or tracking variables | Program Debugging |
| Find application version and change history | Menu Info |
Most important buttons¶
| Button | What it does |
|---|---|
| In block mode, it creates Python from the workspace, loads it, and runs it. In text mode, it loads and runs the contents of the currently opened tab. | |
| Terminates debugging and stops the program. It sends an interrupt and a stop command to the board; restarts the runtime in the simulator. | |
| It will return the previous modification of blocks or text depending on which mode you are working in. | |
| Restores the edit returned by the Back button. |
Run is not the same as saving the project
Run is transferring an executable program. For further editing of the blocks, save the project itself via Project → Save to PC, or Save to ESP. The generated Python does not contain all the information needed to restore the block workspace.
When running a program into a real board without a connection, the IDE offers a connection dialog. The board must have the firmware and libraries that the program uses; the procedure is in FW Installation.
Back and Redo modify the contents of the editor. They do not return already executed commands in the running device. After changing the program, run it again so that the change takes effect there as well.
Main screen¶

Pictured is the Generic target. When you select a simulator, its separate panel will be added.
| Area | What it contains |
|---|---|
| Top Bar | It contains the most common actions, the Project, Device, and Settings menus, the Blocks/Python switch, and the Info menu. |
| Categories on the left | A menu of blocks, also called a toolbox. Click on a category to expand its blocks. Content depends on processor, add-ons and visibility settings. |
| Workspace | Here you drag blocks from the categories and connect them to the program. |
| workspace control on the right | Zooming in, zooming out, and returning the view help with orientation in the larger program. The basket is used to remove blocks. |
| Terminal at the bottom | Displays program listings, device responses, and error messages. It can also pass typed commands to MicroPython when connected. |
| Separator above terminal | By dragging, you change the size ratio of the editor and the terminal. When you're looking for a bug, zoom in on the terminal; give more space to the blocks when building the program. |
Blocks can also be zoomed in with the mouse wheel; the editor also has pinch zoom enabled. Right-click above the block to open its context menu. Available actions depend on the block; this also includes adding a breakpoint or tracepoint.
Are you missing a block?
First check Device → Processor, then Project → Block View and Add-on manager. Not every block is part of every toolbox.
First boot without board¶
- Open Device → Processor and select Simulator.
- Wait for the simulator panel to prepare.
- Insert the code that runs once block from the Program category on the workspace, if it is not already there.
- After it, connect the print block from the Text category and write
Hello, ESP IDE!in the text field. - Click on Run code. The text will appear in the terminal.
- If the program also contains an infinite loop, end it with the Stop program button.
Use block code that runs once for one-time setting. The repeat forever block includes an activity to be repeated. The pages Code after program start and Program loop explain the difference.
For the connected board, the procedure is similar: select its processor, connect the device and run the program. The simulator does not need to select a USB port or upload firmware to the board.
You can find further experiments and finished projects in the Simulator – the first program without a board section.
Blocks and Python¶
The switch in the upper bar selects the mode of operation:
| Mode | What do you edit and run in it |
|---|---|
| Blocks | The program compiled on the workspace. When launched, the IDE will generate Python from it. |
| Python | Tabbed text files. At startup, only the currently active tab is used. |
How to view Python built from blocks¶
Use Project → View Code. A tab blockly.py is created or updated from the blocks and the IDE opens it in a text editor. Selecting the same item in text mode will return you to the blocks.
Switching from Blocks to Python with the top switch also updates the generated tab, but it doesn't have to be selected instead of the text tab you were working on earlier.
Python edits are not converted back to blocks
Changing the text does not modify the block program. The next time you generate from the blocks, the contents of blockly.py will be recreated. If you want to keep your modifications, save them as a separate text file.
Text editor tabs¶
- Click on the tab to select the file that you are editing and possibly running.
- The new tab button creates another empty Python file.
- The pencil icon next to the name allows the tab to be renamed.
- The cross closes the tab. For a changed file, the IDE will ask before closing.
- An asterisk
*next to the name indicates a modified file.
Save to PC, Save to ESP and Share file in text mode refer to the active tab, not all files at once. Other tabs are not automatically loaded as its libraries when the active file is launched.
How to read terminal¶
The terminal is where a program sends, for example, the output of a print block or Python print(). When the program ends with an error, look here for its type, description and possibly line number.
The prompt >>> means that MicroPython is waiting for a command. The written command is then executed by the attached device; it is not a modification of a saved project. If a file transfer or other operation is running, finish it first before you start typing in the terminal.
Too short terminal, enlarge it by dragging the separator. Changing the size of the terminal does not change the content of the program.
What the individual offers contain¶
| Offer | What will you find in it |
|---|---|
| Examples, files, backup, sharing, Python view, plugins, and block visibility. | |
| Processor, Connections, File Manager, Dashboard, Bluetooth Settings and Device Tools. | |
| Language, theme, menu layout, automatic backups, debug mode and default editor options. | |
| Application version, documentation and change history. |
The names of some items change depending on the editor mode or connection status. A gray item is currently unavailable — for example, saving to ESP without a connected device. On a narrower screen, main menu texts or direct connection buttons can be hidden; you can still find the connection in the Device menu.
Menu Info¶
Show Info menu

| Item | What will |
|---|---|
| Shows the version number of ESP IDE. Credit it when reporting a problem so it's clear in which version it appeared. | |
| Opens the ESP IDE documentation. | |
| Shows a list of added features and fixes. Czech has its own overview, other languages use English. |
What to watch out for¶
- Selecting a processor is not installing firmware. Selects the block menu and related editor settings. The firmware is installed separately.
- Save your own copy of the project. Settings or text tabs saved in the browser are not the same as the file downloaded to the computer.
- Not every action will keep the program running. File manager, opening the last backup, device information, or changing Bluetooth settings interact with the device and interrupt its program.
- Do not confuse Stop and Restart. Stop is for ending the program. Reboot reinitializes the device environment; the firmware can then run the program marked for automatic start.