SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
Note:
If your program does not run, but prints a “syntax error” message to the Shell area, then there is an error in
what you have written.
MicroPython needs to write its instructions in a very specific way: miss parentheses or quotation marks, spell
errors, or give it a capital P, or add extra symbols somewhere in the instruction, and it won’t run . Try to type the
command again and make sure it is the same as this one, and then press Enter.
You will find that the message
hello world
will be printed out immediately in the Shell area.
3.3.2 Script Mode
Interactive mode is not recommended if you need to write a long piece of Python code, or if your Python script spans
multiple files. In this case, script mode can be used. In script mode, you write your code and save it with a .py
extension, which stands for “Python”.
Enter the same command
print("Hello, World!")
in the script area, when you press the ENTER key, the
program will not run, only one more blank line in the script area.
46
Chapter 3. For MicroPython User
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 ...