Thonny IDE is a very beginner-friendly tool. After finding the installation package corresponding to your current operating system on its official website or GitHub Release page, download it and follow the prompts to complete the installation.
Connect the development board to the computer.
Run Thonny, click Run > Configure interpreter.
Select MicroPython(ESP32).
Select the Port where the development board is located, and click OK to confirm the settings.
Check View > Files to open the file management bar.
REPL is the abbreviation of Read-Eval-Print-Loop, translated as Read-Eval-Output-Loop.
We can understand its meaning through practical operation.
After connecting the development board with MicroPython firmware installed to the computer, running Thonny IDE and configuring it correctly, the following text will appear in the Shell window:
MicroPython v1.20.0-283-g7d66ae603 on 2023-07-14; ESP32S3 module (spiram) with ESP32S3
Type "help()" for more information.
>>>
Pay attention to the >>>
prompt on the last line, we can directly enter the formula or code after this, and press the enter
key on the keyboard to get the output result in the next line immediately.
>>> 1+2
3
>>> print("Hello World")
hello world
>>>
Now it can be understood very intuitively. It will read the information we input, perform calculation and evaluation, output the result, and then wait for our subsequent input, and keep looping this process.
The information we input is transmitted to the chip for interpretation and operation without compilation. Yes, this is an important feature of the Python language, and MicroPython perfectly inherits it.
About the application of REPL, more detailed and comprehensive content can refer to MicroPython Documentation: REPL