Interactive pinout
Raspberry Pi Pico pinout
The Raspberry Pi Pico 40-pin layout with the USB port at the top. Physical pin numbers are shown beside the GP names; use the GP number in code.
- GPIO
- Power
- Ground / N.C.
- Reset
- Has a warning
Selected pin
GP0GPIO0physical pin 1
Safe to use
GPIOPWMI2CSPIUART
Default UART0 TX.
- uart
- UART0 TX
- i2c
- I2C0 SDA
- spi
- SPI0 RX
Code for this pin
const int PIN = 0;
void setup() {
pinMode(PIN, OUTPUT);
}
void loop() {
digitalWrite(PIN, HIGH);
delay(500);
digitalWrite(PIN, LOW);
delay(500);
}Ad space · inline
Good to know
- ›Every GPIO can do PWM and work with PIO. Only GP26–GP28 can be analog inputs (ADC0–ADC2).
- ›GP29 (ADC3) is internally wired to measure VSYS/3 — it is not on the headers.
- ›GP25 drives the on-board LED. GP23 and GP24 are used internally (power mode and VBUS detect).
Where to buy
Affiliate links: databit.me may earn a small commission at no extra cost to you. Details.