In either case you can select Pico's back-end.
Thonny is supposed to show "MicroPython (Raspberry Pi Pico)" option in the back-end switcher when it sees the port with Pico's USB VID/PID or when it sees Pico's bootloader volume (containing INFO_UF2.TXT with specific Board-ID).
THONNY SOURCE CODE SERIAL
Pico does not have a serial port when in bootloader mode (at least not in my Ubuntu) Do you have any documentation suggesting that Thonny is able to upload/flash the required 'firmware'? I haven't powered up my RPi 2040 Pico board yet, but I anticipated that I would have to flash the MicroPython UF2 file to the board as a first step, and subsequently be able to access it with a utility such as Thonny. "I've put my pi pico in bootsel mode so via Thonny the latest micropython firmware could be installed.Īfter that Thonny tries to detect a serial port but fails every time."ĭo you have any documentation to support that expectation?
THONNY SOURCE CODE CODE
I can even get the serial port working in my code in arduino IDE, but I wanted to play around in mircopython, just to get to know it. The pi pico is working nicely in the arduino IDE. In my /dev, no new serial port comes up, so I understand why thonny fails. I've put my pi pico in bootsel mode so via Thonny the latest micropython firmware could be installed.Īfter that Thonny tries to detect a serial port but fails every time. I've installed the latest version with the bash command on the website. However, as you progress, get ready to try other apps.I was just trying to get started and play around with micropython in thonny. It even walks you through reviewing and debugging your code. It was specifically designed to help you get into this particular programming language, stripping down the app to make it minimal and contain only the features and buttons you need. A good app to start Python programmingįor people looking to learn Python, there are a few apps that can match Thonny.
THONNY SOURCE CODE FULL
As such, expect it to lack more advanced features that make it ill-advised for full Python projects. From its interface to its capabilities, it was designed to help people get used to more complex alternatives out there. Its interpreter is not designed to handle more complex applications. Of course, experienced Python programmers would immediately find this IDE too basic and too restrictive. The IDE even allows you to evaluate your expressions that come with visual representation to make it easier to follow for new programmers. F6 lets you take a big step while F7 is used for smaller steps. With this, you can test and run your program step-by-step without the need to add breakpoints into your source code. It also comes with a basic debugger, accessible by just pressing Ctrl+F5. Regardless, the IDE starts out with a stripped-down interface to avoid distracting new users. Of course, it also supports separate Python installations so you can always use the latest version whenever available. It comes with a built-in Python 3.7, making it easy to get started.
Since it was developed mainly for beginners, Thonny offers a lot of features without feeling too overwhelming for new users.