Source: https://mokxi.com/learn/xiao-esp32c6-pinout
Updated: 2026-11-20

Learn

# XIAO ESP32-C6 pinout: D0 to D10 and the GPIO behind each pad

Beginner

Written by the Mokxi team, updated November 20, 2026

Start building free Open the editor

Or see every lesson.

- 526 parts on the bench
- 46 boards running now
- 1.00x real time, on every board

Click to open it in the editor

The XIAO ESP32-C3’s knob circuit, pad for pad, on the ESP32-C6: D0 is still A0, though the GPIO under it has changed.

The Seeed XIAO ESP32-C6 puts the RISC-V ESP32-C6 chip on the XIAO family's small outline. It is 21 by 17.5 mm, has fourteen castellated pads, USB-C, and a yellow LED that lights on LOW. This page lists every pad on the board and what each one can do in the simulator: GPIO, analog input, PWM, and the default I2C, SPI, and UART spots.

The silkscreen numbers on this board are the XIAO family's, not the chip's. Sketches in Mokxi use D0 to D10 and A0 to A2, and those names are defined for you. The pads sit in the same places as on the XIAO ESP32-C3, with other GPIOs underneath them. The table below shows each pad's GPIO number.

## Every pin on the board

The table has one row for each of the 15 holes of the XIAO ESP32-C6 in Mokxi, in the order of the part's pin list, which follows the board's headers. A row that says "Not a GPIO" is a supply, a ground or a control pin, and a sketch cannot drive it.

Every row below is worked out from the same board model the simulator runs: the pin list, the Circuit Doctor's pin data and the default bus pins.

XIAO ESP32-C6: every hole in Mokxi's pin list
Pin | Sketch name | What it can do | Watch out for

D0 | D0 (GPIO 0) | Digital in and out. Analog in, A0. PWM. | 3.3 V logic.

D1 | D1 (GPIO 1) | Digital in and out. Analog in, A1. PWM. | 3.3 V logic.

D2 | D2 (GPIO 2) | Digital in and out. Analog in, A2. PWM. | 3.3 V logic.

D3 | D3 (GPIO 21) | Digital in and out. PWM. SPI SS (default). | 3.3 V logic.

D4 | D4 (GPIO 22) | Digital in and out. PWM. I2C SDA (default). | 3.3 V logic.

D5 | D5 (GPIO 23) | Digital in and out. PWM. I2C SCL (default). | 3.3 V logic.

D6 | D6 (GPIO 16) | Digital in and out. PWM. UART TX. | 3.3 V logic.

5V | - | A 5 V power pin: 5V. | Not a GPIO.

GND | - | Ground. | -

3V3 | - | A 3.3 V power pin: 3V3. | Not a GPIO.

D10 | D10 (GPIO 18) | Digital in and out. PWM. SPI MOSI (default). | 3.3 V logic.

D9 | D9 (GPIO 20) | Digital in and out. PWM. SPI MISO (default). | 3.3 V logic.

D8 | D8 (GPIO 19) | Digital in and out. PWM. SPI SCK (default). | 3.3 V logic.

D7 | D7 (GPIO 17) | Digital in and out. PWM. UART RX. | 3.3 V logic.

_RF | - | The board's _RF pin. | Not a GPIO.

## How to read the table

The Pin column is what is printed on the board. The Sketch name column is what a sketch writes, with the GPIO number in brackets, because the XIAO D numbers are not GPIO numbers. D3 is GPIO 21, for example, and D0 is GPIO 0.

A hole that has no sketch name is a supply, a ground or a control pin. It is listed so the table matches the board, hole for hole.

## Power and ground pins

The XIAO ESP32-C6 has 1 ground holes in its pin list. Its 5 V pins are 5V. Its 3.3 V pins are 3V3. Pins named for a job, not for a GPIO, are _RF. A sketch cannot drive any of these with digitalWrite.

## PWM and analog pins

Every GPIO pad can drive PWM with analogWrite: every GPIO pad.

These pins can read an analog voltage with analogRead: D0, D1 and D2. The pins run at 3.3 V.

## The default I2C and SPI pins

Wire uses SDA on D4 (GPIO 22) and SCL on D5 (GPIO 23).

SPI uses SCK on D8 (GPIO 19), MISO on D9 (GPIO 20), MOSI on D10 (GPIO 18) and SS on D3 (GPIO 21).

## Which pin should I use for what?

For an LED, a buzzer or a switch, any GPIO row in the table will do. For dimming, pick a PWM pin: every GPIO pad. For a potentiometer or an analog sensor, use D0, D1 and D2. For an I2C module, wire SDA to D4 (GPIO 22) and SCL to D5 (GPIO 23). For an SPI module, wire SCK to D8 (GPIO 19), MISO to D9 (GPIO 20) and MOSI to D10 (GPIO 18), and use D3 (GPIO 21) for SS. The pins run at 3.3 V logic.

## The user LED

The yellow LED is on GPIO 15, which no pad reaches. It is wired from 3.3 V to the pin, so it lights when the pin is LOW, not HIGH.

LED_BUILTIN is 15. digitalWrite(LED_BUILTIN, LOW) turns the LED on. The built-in Blink example does exactly that.

## Buttons

The BOOT and RESET buttons are buttons, not pads. BOOT grounds GPIO 9.

There is no reset pad. The board's RESET button holds the chip in reset while it is pressed, and that is its only job.

## Analog and PWM

A0 to A2 are ADC1 channels 0 to 2. They read the voltage on the net, against 3.3 V at full scale.

LEDC PWM works on any pin, so all eleven pads D0 to D10 can do PWM in a sketch.

## Default connections

I2C defaults to SDA on D4 and SCL on D5. SPI defaults to SCK on D8, MISO on D9, MOSI on D10, and SS on D3.

UART TX is D6 and RX is D7. The USB-C connector goes to the chip's own USB port, and that is what Serial and the serial monitor use.

## What the model has and what it leaves out

Mokxi models the chip of the ESP32-C6 DevKitC-1 whole: the RISC-V core, GPIO, UART0, the timers, ADC1 and LEDC PWM on any pin. Programs built for this board run on the DevKitC-1 and the other way around.

The model leaves out the RF switch on GPIO 3 and 14 and the antenna it chooses, the battery charger and its pads on the back, the USB stack, Thread, Zigbee and a real radio. The antenna socket is drawn and does nothing. Bluetooth LE is simulated: a phone in the editor Bluetooth pane, not a real radio.

Open this circuit in the editor. XIAO ESP32-C6: a knob on D0, wired as it runs at the top of this page. Change a part or a value and run it again.
Open the circuit

## Questions

What are the XIAO ESP32-C6 I2C pins?

SDA is D4 (GPIO 22) and SCL is D5 (GPIO 23).

What are the XIAO ESP32-C6 SPI pins?

SCK is D8 (GPIO 19), MISO is D9 (GPIO 20), MOSI is D10 (GPIO 18) and SS is D3 (GPIO 21).

How do i turn on the led?

The LED is wired from 3.3 V to the pin, so it lights when the pin is LOW. Use `digitalWrite(LED_BUILTIN, LOW)`.

What pin is the led on?

`LED_BUILTIN` is 15. No pad on the board reaches GPIO 15.

Why does D3 say GPIO 21?

The silkscreen numbers are the XIAO family's, not the chip's. The pad named `D3` sits on GPIO 21.

Which pins can read analog?

`A0` to `A2`, on the pads `D0` to `D2`. They are ADC1 channels 0 to 2 and read against 3.3 V at full scale.

Do programs run on the devkit too?

Yes. Programs built for this board run on the ESP32-C6-DevKitC-1 and the other way around.

Related

## Keep going

XIAO ESP32-S3 Pinout: D0 to D10 and GPIO Numbers XIAO ESP32-C3 Pinout: D Pins to GPIO, ADC, Boot Pins XIAO RP2040 Pinout: D Pins to GPIO, LEDs, NeoPixel Run the XIAO ESP32-C6 in the simulator Help: the XIAO ESP32-C6 model The project page, with the full sketch Beginner

## Build this for real

Open the editor, change a value and watch the number move with it. Nothing to install, and no account needed.

Start building free Open the editor
