But apart from that, it's got many more capabilities. Thonny IDE works with multiple interpreters.
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. Now it also runs over MicroPython on the Raspberry Pi Pico microcontroller board. I will show you first how to install the necessary interpreter on your ESP32 in the following lesson. Blinka is our compatibility library, which allows CircuitPython libraries to run on Raspberry Pi Single Board Computers.
In this case, as you can see, I'm running MicroPython on my ESP32, which is connected. And then, down below, you've got the Shell that you can use to interact with the Python interpreter. You can have multiple tabs with your various Python programs or components for the program. In a new Thonny file, enter the following code: Copy Code import machine import utime import rp2 Blink state machine 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. 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. For example, if I want to know what the value of the variable number is. Thonny - 118: 1 File Edit View Run Tools Help lab3. In the screenshot above you can see Thonny IDE running on Mac OS. If you install Thonny, it will also install Python 3 if you dont already have. To get a basic example of how matplotlib works, create a new.