@@ -90,25 +90,27 @@ mapping. For the official Arduino boards and compatible boards, the
9090Please extend the table below to keep naming among boards of the same form
9191factor consistent:
9292
93- | Form Factor | Macro Name | Description |
94- | :------------- | :--------------------- | :--------------------------------- |
95- | Arduino Nano | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
96- | Arduino Uno | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
97- | Arduino Mega | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
93+ | Form Factor | Macro Name | Description |
94+ | :---------------- | :--------------------- | :--------------------------------- |
95+ | Arduino Nano | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
96+ | Arduino Uno | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
97+ | Arduino Mega | ` ARDUINO_UART_D0D1 ` | UART on D0 (RXD) and D1 (TXD) |
98+ | Seeedstudio XIAO | ` ARDUINO_UART_DEV ` | UART on D7 (RXD) and D6 (TXD) |
9899
99100I²C Buses {#iomaps-mapping-i2c}
100101---------
101102
102103The feature ` arduino_i2c ` is provided by boards that do provide an I²C bus
103104mapping.
104105
105- | Form Factor | Macro Name | Description |
106- | :------------- | :--------------------- | :--------------------------------- |
107- | Arduino Nano | ` ARDUINO_I2C_NANO ` | D18 (SDA) / D19 (SCL) |
108- | Arduino Uno | ` ARDUINO_I2C_UNO ` | D18 (SDA) / D19 (SCL) |
109- | Arduino Mega | ` ARDUINO_I2C_UNO ` | D20 (SDA) / D21 (SCL) |
110- | Arduino Zero | ` ARDUINO_I2C_UNO ` | D20 (SDA) / D21 (SCL) |
111- | Arduino Due | ` ARDUINO_I2C_UNO ` | D70 (SDA) / D71 (SCL) |
106+ | Form Factor | Macro Name | Description |
107+ | :---------------- | :--------------------- | :--------------------------------- |
108+ | Arduino Nano | ` ARDUINO_I2C_NANO ` | D18 (SDA) / D19 (SCL) |
109+ | Arduino Uno | ` ARDUINO_I2C_UNO ` | D18 (SDA) / D19 (SCL) |
110+ | Arduino Mega | ` ARDUINO_I2C_UNO ` | D20 (SDA) / D21 (SCL) |
111+ | Arduino Zero | ` ARDUINO_I2C_UNO ` | D20 (SDA) / D21 (SCL) |
112+ | Arduino Due | ` ARDUINO_I2C_UNO ` | D70 (SDA) / D71 (SCL) |
113+ | Seeedstudio XIAO | ` ARDUINO_I2C_DEV ` | D4 (SDA) / D5 (SCL) |
112114
113115The ` ARDUINO_I2C_UNO ` refers to the I²C bus next to the AREF pin (the topmost
114116pins on header on the top right) of an Arduino Uno compatible board, e.g.
@@ -123,14 +125,15 @@ SPI Buses {#iomaps-mapping-spi}
123125The feature ` arduino_spi ` is provided by boards that do provide an SPI bus
124126mapping.
125127
126- | Form Factor | Macro Name | Description |
127- | :------------- | :------------------------- | :------------------------------------- |
128- | Arduino Nano | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
129- | Arduino Nano | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
130- | Arduino Uno | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
131- | Arduino Uno | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
132- | Arduino Mega | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
133- | Arduino Mega | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
128+ | Form Factor | Macro Name | Description |
129+ | :---------------- | :------------------------- | :------------------------------------- |
130+ | Arduino Nano | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
131+ | Arduino Nano | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
132+ | Arduino Uno | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
133+ | Arduino Uno | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
134+ | Arduino Mega | ` ARDUINO_SPI_ISP ` | The SPI on the ISP header |
135+ | Arduino Mega | ` ARDUINO_SPI_D11D12D13 ` | D11 (MOSI) / D12 (MISO) / D13 (SCK) |
136+ | Seeedstudio XIAO | ` ARDUINO_SPI_DEV ` | D10 (MOSI) / D9 (MISO) / D8 (SCK) |
134137
135138@note The original AVR based Arduinos only have a single hard SPI bus which
136139 is only provided via the ISP header. Many modern Arduino compatible
@@ -144,12 +147,12 @@ Modules implementing drivers for extension boards, a.k.a. shields, can express
144147their mechanical and electrical requirements by depending on ` arduino_shield_... `
145148features. The following list of features currently exists:
146149
147- | Feature Name | Compatibility Claim |
148- |
149- | ` arduino_shield_nano ` | Board has side headers compatible with the Arduino Nano |
150- | ` arduino_shield_uno ` | Board has side headers compatible with the Arduino UNO |
151- | ` arduino_shield_mega ` | Board has side headers compatible with the Arduino MEGA |
152- | ` arduino_shield_isp ` | Board has an ISP header |
150+ | Feature Name | Compatibility Claim |
151+ | :--------------------- | :------------------------------------------------------------- |
152+ | ` arduino_shield_nano ` | Board has side headers compatible with the Arduino Nano |
153+ | ` arduino_shield_uno ` | Board has side headers compatible with the Arduino UNO |
154+ | ` arduino_shield_mega ` | Board has side headers compatible with the Arduino MEGA |
155+ | ` xiao_shield ` | Board has headers compatible with the Seeedstudio XIAO boards |
153156
154157@note A board providing ` arduino_shield_mega ` ** MUST** also provide
155158 ` arduino_shield_uno ` , as Arduino MEGA boards are backward compatible to
0 commit comments