Project 01: Hello World
Introduction
For Raspberry Pi Pico beginners, we will start with some simple things. In this project, you only need a Raspberry Pi Pico and a USB cable to complete the “Hello World!” project, which is a test of communication between Raspberry Pi Pico and the PC as well as a primary project.
Components
|
|
|---|---|
Raspberry Pi Pico*1 |
USB Cable*1 |
Wiring Up
In this project, we use a USB cable to connect the Raspberry Pi Pico to the computer.

Online running code:
To run the Raspberry Pi Pico online, you need to connect the Raspberry Pi Pico to your computer, which allows you to compile or debug programs using Thonny software.
Advantages:
1). You can use the Thonny software to compile or debug programs.
2). Through the “Shell” window, you can view error messages and output results generated during the running of the program as well as query related function information online to help improve the program.
Disadvantages:
1). To run the Raspberry Pi Pico online, you must connect the Raspberry Pi Pico to a computer and run it with the Thonny software.
2). If the Raspberry Pi Pico is disconnected from the computer, when they reconnect, the program won’t run again.
Basic Operation:
Open Thonny and click“Open…”.

Click“This computer”in the new pop-up window.

In the new dialog box,select“Project_01_HelloWorld.py”,click“Open”.
The code used in this tutorial is saved in the file …\Python_Codes. You can move the code to anywhere,for example,we can save the Python_Codes file in the Disk(D), the route is D:\Python_Codes.

Click
“Run current script”to execute the program“Hello World!”, “Welcome Keyestudio” , which will be printed in the“Shell”window.

Exit running online
When running online, click
“Stop /Restart Backend” or press “Ctrl+C” to exit the program.

5. Test Code
print("Hello World!")
print("Welcome Keyestudio")

