databit.me

Interactive pinout

Seeed XIAO RP2040 pinout

XIAO form factor, USB-C at the top. Pin names D0–D10 map to the RP2040 GPIO numbers shown in each pin's details.

  • GPIO
  • Power
  • Ground / N.C.
  • Reset
  • Has a warning

Selected pin

D0 / A0GPIO26

Safe to use

GPIOADCPWMI2CSPI

Analog input ADC0.

adc
ADC0
i2c
I2C1 SDA
spi
SPI1 SCK

Code for this pin

const int PIN = D0;

void setup() {
  pinMode(PIN, OUTPUT);
}

void loop() {
  digitalWrite(PIN, HIGH);
  delay(500);
  digitalWrite(PIN, LOW);
  delay(500);
}
Ad space · inline

Good to know

  • ›Any RP2040 pin can be used for PWM or PIO. Extra pins (GP12, GP13…) are on the back pads.
  • ›Hold BOOT while plugging in to enter the drag-and-drop UF2 bootloader.

Where to buy

Affiliate links: databit.me may earn a small commission at no extra cost to you. Details.

More pinouts