Embedded 101: MicroPython REPL 3-Min Quick Start | Pico Interactive Debug Guide
It demonstrates common MicroPython REPL operations: help(), dir(), paste mode, print statements and basic onboard LED control for Pico.
【Preliminary Note】The original hardware example in this article was written based on the RP2040. The actual hardware used in this hands-on demonstration features the W55RP20 as the main controller chip. The circuit logic and UF2 flashing operation principles are universally applicable, with only the main controller model differing. The original chip model mentioned in the circuit descriptions below is provided for reference purposes only.
1. Quickly master the relevant methods of REPL
1.1 Help Interface
1.2 View the properties and methods contained in the module
dir () function to check what variables and functions are inside a module:1.3 Paste Long Blocks of Code
def foo():
print('This is a test to show paste mode')
print('Here is a second line')
foo()Code execution result of MicroPython REPL paste mode
2. Terminal Print Output
print("Hello World!")3. Driving an LED
from machine import Pin
led = Pin("LED", Pin.OUT)
led.value(1)
led.value(0) 