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.
| Pin | GPIO | Also |
|---|---|---|
| P1 | GP0 | UART0 TX / I²C0 SDA |
| P2 | GP1 | UART0 RX / I²C0 SCL |
| P3 | — | GND |
| P4 | GP2 | I²C1 SDA |
| P5 | GP3 | I²C1 SCL |
| P6 | GP4 | I²C0 SDA / PWM2A |
| P7 | GP5 | I²C0 SCL / PWM2B |
| P8 | — | GND |
| P9 | GP6 | I²C1 SDA / PWM3A |
| P10 | GP7 | I²C1 SCL / PWM3B |
| P11 | GP8 | I²C0 SDA / PWM4A |
| P12 | GP9 | I²C0 SCL / PWM4B |
| P13 | — | GND |
| P14 | GP10 | SPI1 SCK / PWM5A |
| P15 | GP11 | SPI1 TX / PWM5B |
| P16 | GP12 | SPI1 RX / PWM6A |
| P17 | GP13 | SPI1 CSn / PWM6B |
| P18 | — | GND |
| P19 | GP14 | SPI1 SCK / I²C1 SDA / PWM7A |
| P20 | GP15 | SPI1 TX / I²C1 SCL / PWM7B |
| P21 | GP16 | SPI0 RX / PWM0A |
| P22 | GP17 | SPI0 CSn / PWM0B |
| P23 | — | GND |
| P24 | GP18 | SPI0 SCK / PWM1A |
| P25 | GP19 | SPI0 TX / PWM1B |
| P26 | GP20 | I²C0 SDA / PWM2A |
| P27 | GP21 | I²C0 SCL / PWM2B |
| P28 | — | GND |
| P29 | GP22 | PWM3A |
| P30 | RUN | reset input, not a GPIO |
| P31 | GP26 | ADC0 |
| P32 | GP27 | ADC1 |
| P33 | — | GND |
| P34 | GP28 | ADC2 |
| P35 | — | ADC_VREF (tied to 3V3 on the board) |
| P36 | — | 3V3 (OUT) |
| P37 | 3V3_EN | input, 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.