SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
– G
: Take a big step, which means jumping to the next line or block of code.
– H
: Take a small step means expressing each component in depth.
– I
: Exit out of the debugger.
•
J
Click it to return from debug mode to play mode.
•
K
Use the stop icon to stop running code.
•
L
Script Area, where you can write your Python code.
•
M
Python Shell, where you can type a single command, and when you press the Enter key, the single command
will run and provide information about the running program. This is also known as REPL, which means “Read,
Evaluate, Print, and Loop.”
•
N
Interpreter, where the current version of Python used to run your program is displayed, can be changed manu-
ally to another version by clicking on it.
Note: NO MicroPython(Raspberry Pi Pico) Interpreter Option ?
• Check that your Pico is plugged into your computer via a USB cable.
• The Raspberry Pi Pico interpreter is only available in version 3.3.3 or higher version of Thonny. If you are
running an older version, please update.
3.3 Your First MicroPython Program
In MicroPython, there are two options/methods for running code:
•
•
Interactive mode involves running your code directly from the Python shell, which can be accessed from the operating
system’s terminal. In script mode, you must create a file, save it with .py extension, and then run your code. Interactive
mode is suitable when you are running a few lines of code. Script mode is recommended when you need to create
large codes and save them for next time.
3.3.1 Interactive Mode
Interactive mode, also known as the REPL provides us with a quick way to run blocks or a single line of MicroPython
code via the Python shell.
Click the Python Shell area, type the following command after >>>, and then Enter.
(
"Hello, World!"
)
3.3. Your First MicroPython Program
45
Summary of Contents for Thales Kit
Page 1: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 Jimmy SunFounder Jun 04 2021 ...
Page 2: ......
Page 4: ...ii ...
Page 6: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 2 CONTENTS ...
Page 140: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 136 Chapter 3 For MicroPython User ...
Page 164: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 160 Chapter 4 For Arduino User ...