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.
Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.
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.
Pin Map
| Pad | RP2040 | Default role |
|---|---|---|
| D0 / A0 | GPIO26 | ADC0 |
| D1 / A1 | GPIO27 | ADC1 |
| D2 / A2 | GPIO28 | ADC2 |
| D3 / A3 | GPIO29 | ADC3 |
| D4 | GPIO6 | I2C SDA |
| D5 | GPIO7 | I2C SCL |
| D6 | GPIO0 | UART TX |
| D7 | GPIO1 | UART RX |
| D8 | GPIO2 | SPI SCK |
| D9 | GPIO4 | SPI MISO |
| D10 | GPIO3 | SPI MOSI |
| 5V | VBUS | USB 5 V in/out |
| 3V3 | — | 3.3 V out |
| GND | — | Ground |
14 of 14 pins match
Hover or tap any pin on the board
LEFT header · pin 1
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
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.
Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.
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.
Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.
Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.
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.
Highlighted on the SolderHub Simulator Seeed Studio XIAO RP2040. Explore every pin on the Seeed Studio XIAO RP2040 board page.
pinMode(17, OUTPUT);
digitalWrite(17, LOW); // red user LED on (active LOW)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.