Raspberry Pi Pico Python SDK
4.1.1. Connecting to the Raspberry Pi Pico from Thonny
Connect your computer and the Raspberry Pi Pico together, see
Select Interpreter, picking "MicroPython (Raspberry Pi Pico)" from the drop down, see
Figure 4. Selecting the
correct MicroPython
interpreter inside the
Thonny environment.
Hit "OK". If your Raspberry Pi Pico is plugged in and running MicroPython Thonny should automatically connect to the
REPL.
If this doesn't happen go to Tools → Options menu item, and select your serial port in the drop down on the "Interpreter"
tab. On the Raspberry Pi the serial port will be "Board in FS Mode — Board CDC (/dev/ttyACM0)" this should automatically
connect you to the REPL of your Raspberry Pi Pico. Afterwards go to the "View" menu and select the "Variables" option to
open the variables panel.
NOTE
In the rare case where you can't connect to Raspberry Pi Pico you may have to reboot your Raspberry Pi.
You can now access the REPL from the Shell panel,
>>> print('Hello Pico!')
Hello Pico!
>>>
see
Figure
5.
4.1. Using Thonny
2. Then open up the Run menu and select Run →
Chapter
Figure
4.
27
Need help?
Do you have a question about the Pico Python SDK and is the answer not in the manual?