"Uplink established. Executing the first continuous loop directly on the hardware."
This guide walks you through connecting your IDE to the flashed ESP8266, creating the main boot file, and running your very first script.
- Launch the IDE: Open Thonny on your system.
- Switch the Interpreter: Look at the bottom right corner of the Thonny window. Click on the text displaying your local Python version (e.g., "Local Python 3") and change it to MicroPython (ESP8266).
- Locate the Files pane on the left side of Thonny.
- Under the MicroPython device section, create a new file and name it
main.py. - Open
main.pyand paste the following script:
from utime import sleep
while 1:
print('Good byee world')
sleep(1)- Execute: Click the green "Run current script" button in the top toolbar, or simply press
F5on your keyboard. You will see the text begin to stream in the Shell below. - Abort: To break the loop and regain control of the hardware prompt, click inside the Shell area and press
Ctrl+Con your keyboard.