PyRasp

The pinout

The Pico's header, as the simulator draws it. Pin names match the board's silkscreen (P1–P40); code uses the GP number, not the physical position.

PinGPIOAlso
P1GP0UART0 TX / I²C0 SDA
P2GP1UART0 RX / I²C0 SCL
P3—GND
P4GP2I²C1 SDA
P5GP3I²C1 SCL
P6GP4I²C0 SDA / PWM2A
P7GP5I²C0 SCL / PWM2B
P8—GND
P9GP6I²C1 SDA / PWM3A
P10GP7I²C1 SCL / PWM3B
P11GP8I²C0 SDA / PWM4A
P12GP9I²C0 SCL / PWM4B
P13—GND
P14GP10SPI1 SCK / PWM5A
P15GP11SPI1 TX / PWM5B
P16GP12SPI1 RX / PWM6A
P17GP13SPI1 CSn / PWM6B
P18—GND
P19GP14SPI1 SCK / I²C1 SDA / PWM7A
P20GP15SPI1 TX / I²C1 SCL / PWM7B
P21GP16SPI0 RX / PWM0A
P22GP17SPI0 CSn / PWM0B
P23—GND
P24GP18SPI0 SCK / PWM1A
P25GP19SPI0 TX / PWM1B
P26GP20I²C0 SDA / PWM2A
P27GP21I²C0 SCL / PWM2B
P28—GND
P29GP22PWM3A
P30RUNreset input, not a GPIO
P31GP26ADC0
P32GP27ADC1
P33—GND
P34GP28ADC2
P35—ADC_VREF (tied to 3V3 on the board)
P36—3V3 (OUT)
P373V3_ENinput, not a GPIO
P38—GND
P39—VSYS (1.8–5.5 V in)
P40—VBUS (5 V from USB)

Things that surprise people

  • GP14 and GP15 are on the header — P19 and P20. GP23, GP24 and GP25 are not: GP25 is the on-board LED, and the other two are used on the board itself.
  • The ADC is GP26, GP27 and GP28 only. Other pins are digital; ADC(13) raises an error.
  • GP25 is the on-board LED and is not on the header. machine.Pin(25) drives it; the board's LED lights, and the app's indicator follows it.
  • 3.3 V logic, not 5 V tolerant. 5 V on a GPIO damages the pin: the simulator models the damage and the check "Nothing is damaged" fails.
  • Every GPIO is high-impedance at reset, unlike the Pi: nothing reads high until a pull-up or a driver makes it.