![]() ![]() ![]() The original debugger has been very useful for explaining the meaning of Python constructs, but its memory and time overhead became noticeable when making bigger steps in some programs (especially after the introduction of stepping back in time). But for now, save it on your computer.Thanks to the support from Raspberry Pi Foundation, Thonny now has several new debugger-related features. That means we can also directly upload files to a device. This gives two options to save this file either to your computer or directly to your devices such as Raspberry Pi Pico. When you click on the save icon (2), this pop-up window will appear. Line numbers thonny code#After that copy the following code in a new file and save it by clicking the save icon (2) with the name main.py. To create a new file click on the new file icon (1). For demonstration, we will perform a simple experiment of blinking onboard LED of Pi Pico by following all the necessary steps Create MicroPython File in Thonny IDEįirst, we need to create a main.py file that will contain our main program code which would be executed. Line numbers thonny how to#In this section, we will see how to create a new MicroPython file and how to upload the script to Raspberry pi Pico using Thonny IDE. Writing Your First MicroPython Script with Thonny IDE You can tick all the tabs which you want to appear on your IDE. Click on any to customize your IDE according to your needs. By clicking this, the program code halts whichever line it currently is. It allows us to go back into play mode instead of debug mode. With this button, we can exit the debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |