MicroPython: blink
MicroPython’s own firmware on the real RP2040: the LED blinks, the board prints. No build.

The code
# The Pico's LED blinks and the board prints. This is MicroPython's own firmware on the
# exact RP2040: press Run and it starts at once, no build. When it stops, type into its REPL.
from machine import Pin
import time
led = Pin("LED", Pin.OUT)
for n in range(20):
led.toggle()
print("blink", n)
time.sleep(0.25)
print("done")
More like this

MicroPython: button and LED
A button on GP14 toggles an LED on GP15 through an interrupt.
MicroPythonRaspberry Pi Pico

MicroPython: knob dimmer
A potentiometer on GP26 sets an LED’s brightness on GP15 with PWM.
MicroPythonRaspberry Pi Pico

Pico: blink and breathe
The Pico’s own LED blinks, an LED on GP15 breathes with PWM, the knob on GP26 sets the pace.
ArduinoRaspberry Pi Pico