Skip to content

Guide

XIAO RP2040 Pinout: D0–D10, Analog, I2C, SPI, UART and LEDs

A complete Seeed Studio XIAO RP2040 pinout: the 11 pads and their RP2040 GPIOs, A0–A3, the default I2C/SPI/UART pins, the RGB LEDs and how to power it.

XIAO RP2040 Pinout: D0–D10, Analog, I2C, SPI, UART and LEDs

The Seeed Studio XIAO RP2040 squeezes an RP2040, 2 MB of flash and a USB-C port onto a 21 × 17.5 mm board with 14 castellated pads. Eleven are GPIO, labelled D0–D10 like the rest of the XIAO family, so the same shields and code layout work across XIAO boards.

Quick answer: D0–D3 are also A0–A3 (GPIO26–29, 12-bit). I2C is D4 (SDA) / D5 (SCL), UART D6 (TX) / D7 (RX), SPI D8 (SCK), D9 (MISO), D10 (MOSI). Everything is 3.3 V. The user LED is an RGB LED on GPIO17/16/25 and is active LOW.

Seeed XIAO RP2040 pinout diagram
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

Every pad on the SolderHub Simulator XIAO RP2040, labelled D0–D10 as on Seeed’s pinout. Green is GPIO, red is power, grey is ground.

What's Actually on the Board

Under the metal shield sit the RP2040 and its 2 MB flash; a DC-DC converter makes 3.3 V from the USB 5 V. Next to the USB-C socket is the user LED (RGB, on GPIO17, 16 and 25). Along the bottom edge are the R (reset) button, an RGB NeoPixel and the B (boot) button. Seeed's wiki asks you not to lift the shield.

What’s on a XIAO RP2040: USB-C, the RGB user LED, the shield over the RP2040 and flash, the R and B buttons and the NeoPixel, labelled on the SolderHub Simulator XIAO RP2040

Pin Map

PadRP2040Default role
D0 / A0GPIO26ADC0
D1 / A1GPIO27ADC1
D2 / A2GPIO28ADC2
D3 / A3GPIO29ADC3
D4GPIO6I2C SDA
D5GPIO7I2C SCL
D6GPIO0UART TX
D7GPIO1UART RX
D8GPIO2SPI SCK
D9GPIO4SPI MISO
D10GPIO3SPI MOSI
5VVBUSUSB 5 V in/out
3V3—3.3 V out
GND—Ground
Interactive XIAO RP2040 pinout: tap any pad

14 of 14 pins match

D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Hover or tap any pin on the board

LEFT header · pin 1

D0

D0

Safe to use

12-bit analog input ADC0 (0–3.3 V).

Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.

Can be used as

  • SPI (direct)
  • UART
  • I2C
  • PWM out
  • Analog in

Signals on this pad

  • GPIO26
  • A0
  • SPI1 SCK
  • UART1 CTS
  • I2C1 SDA
  • PWM5 A
  • ADC0
Tap or hover any pin for its functions and warnings.

Analog Inputs (A0–A3)

The first four pads are the RP2040's four ADC channels, 12-bit, 0–3.3 V. That's one more than the Raspberry Pi Pico gives you, because the XIAO brings GPIO29 out instead of using it for supply sensing.

A0–A3 on D0–D3 (GPIO26–29)
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

sketch.ino
void setup() {
  Serial.begin(115200);
  analogReadResolution(12);      // 0–4095
}
void loop() {
  int raw = analogRead(A0);      // D0 / GPIO26
  Serial.println(raw * 3.3 / 4095.0);
  delay(200);
}

I2C, UART and SPI

The XIAO layout puts the buses in fixed places across the family: I2C on D4/D5, UART on D6/D7, SPI on D8–D10. The RP2040 can move them (every GPIO has I2C, SPI, UART and PWM options), but keeping the standard pads means XIAO expansion boards and examples just work.

I2C: SDA D4 (GPIO6), SCL D5 (GPIO7)
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

UART: TX D6 (GPIO0), RX D7 (GPIO1)
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

SPI: SCK D8, MISO D9, MOSI D10
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

Power and LEDs

Power comes from USB-C, or 5 V on the 5V pad. The 3V3 pad supplies 3.3 V from the DC-DC converter. Seeed warns that more than 3.3 V on an I/O pin may damage the chip, so level-shift 5 V signals.

The user LED is active LOW: drive GPIO17 (red), GPIO16 (green) or GPIO25 (blue) LOW to light it. The standard XIAO RP2040 has no battery charger, and Seeed notes you shouldn't connect USB-C while a battery is connected.

Power pads: 5V, 3V3 and GND
D0D1D2D3D4D5D65VGND3V3D10D9D8D7

Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.

sketch.ino
pinMode(17, OUTPUT);
digitalWrite(17, LOW);   // red user LED on (active LOW)
XIAO RP2040 not showing up?
You plug in the USB-C cable
Q1 Is there no RPI-RP2 drive when you want to upload a .uf2?
yes → Hold B, then plug in (or hold B and tap R). The board starts in its bootloader.
no
Q2 Is a battery wired to the board at the same time?
yes → Seeed says not to connect USB-C while a battery is connected on the standard XIAO RP2040.
no
Check the cable carries data, not just power.
From the Reset/Boot instructions in Seeed’s XIAO RP2040 wiki.

Try your pin plan on a virtual XIAO RP2040. The SolderHub Simulator has the same XIAO RP2040 you see in these figures, so you can check the wiring before you touch real hardware.

FAQ

Which pads are analog? D0–D3 (A0–A3).

What are the default I2C pins? SDA on D4, SCL on D5.

Is the XIAO RP2040 5 V tolerant? No, keep I/O at 3.3 V.

Why is my LED on when I set the pin HIGH... and off when LOW? It's the other way round: the user LED is active LOW.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.