But apart from that, it's got many more capabilities.
#THONNY EXAMPLE HOW TO#
And then, show you how to make the connections and interact with MicroPython on the ESP32.įor now, all I want to show you is that the Shell allows me real-time interaction with the Python interpreter running on the ESP32. Specifically, it has a built-in debugger that can help when you run into nasty bugs, and it offers the ability to do step through expression evaluation, among other really awesome features. I will show you first how to install the necessary interpreter on your ESP32 in the following lesson. Thonny is a free Python Integrated Development Environment (IDE) that was especially designed with the beginner Pythonista in mind. In Thonny, open the 'Tools' menu and select. For example in Windows the full path is by default c:anacondapython.exe. Install it and find out where it puts the Python executable (python.exe in Windows and python3 or python in Linux and Mac). In this case, as you can see, I'm running MicroPython on my ESP32, which is connected. To start programming on your NodeMCU (esp8266) using Thonny IDE, you will need to open the Thonny IDE and then click on Tools > Options and select the. Note that Thonny supports only Python 3, so make sure you choose a Python 3 version of Anaconda. And then, down below, you've got the Shell that you can use to interact with the Python interpreter.
![thonny example thonny example](https://www.tecmint.com/wp-content/uploads/2020/11/Thonny-Build-in-Features.png)
![thonny example thonny example](https://turtle-tutorial.readthedocs.io/en/latest/_images/thonny.png)
You can have multiple tabs with your various Python programs or components for the program. It would look like this at its most basic view, where you get the upper part of the window where you can see one or more tabs. Thonny is a competent and configurable integrated development environment. Now it also runs over MicroPython on the Raspberry Pi Pico microcontroller board. I've done a little bit of configuration to customize the font types, and sizes, and things like that.īut, essentially, what you see here is Thonny as it looks like as soon as you install it. Blinka is our compatibility library, which allows CircuitPython libraries to run on Raspberry Pi Single Board Computers.
![thonny example thonny example](https://roboticsbackend.com/wp-content/uploads/2020/11/thonny_ide_debugger.png)
In the screenshot above you can see Thonny IDE running on Mac OS.