Specification
| Feature |
Details |
| Digital ports |
12 groups (0~13 except 4 and 8) |
| Analog ports |
5 groups (A0~A4) |
| I2C ports |
3 groups (in parallel) |
| UART ports |
1 group (R=pin 0, T=pin 1) |
| SPI ports |
1 group (supports SD card module; SS connected to pin 6) |
| SP ports |
1 group (function varies by mainboard) |
| GDI display interface |
DFRobot dedicated GDI (18pin-FPC cable, single-wire screen connection) |
| External power supply |
Cable socket |
| EN jumper wire |
Included |
| Dimension |
60 mm×25.4 mm/2.36×1.00" |
| Fixed Hole Diameter |
2.0 mm/0.08" |
Pinout
The following instructions are only for the Arduino environment. If use it in other operating environment, please adjust the usage according to the schematics.
Digital ports
This IO expansion shield provides 12 groups of digital ports including 0~13 except 4 and 8, which can be used directly by IO number.
Note: When ESP32 uses pins in the Arduino environment, you need to use Dx such as D0 instead of directly using IO number 0, or use IO number corresponding to the mainboard.

Analog ports
This IO expansion shield provides 5 groups of analog ports including A0~A4, which can be used directly by IO number.

I2C ports
This shield provides 3 groups of I2C ports in parallel.

UART ports
This shield provides 1 group of UART ports. R corresponds to pin 0, T to pin 1. When using UART, please do not use pin 0 and pin 1.

SPI ports
This shield provides 1 group of SPI ports, supporting to use SD card module in-line, and SS is connected to pin 6.

SP pin
The SP pin presents different functions on different mainboards, representing NC, RXD, TXD, A5 on M0, and I2C on ESP32-E.

GDI display interface

This interface is a DFRobot dedicated GDI, with 18pin-FPC cable connection and single wire connection to the screen, providing you with the simplest way to use the screen.
The following is a list of pins used by the GDI interface
| FPC PINS Standard |
IO Expansion Shield Line Sequence |
| VCC display power |
3.3 V |
| BLK display backlight |
12/D13 |
| GND |
GND |
| SCIK SPI clock |
18/SCK |
| MOSI SPI host output |
23/MOSI |
| MISO SPI host input |
19/MISO |
| DC data/command |
25/D2 |
| RES reset |
26/D3 |
| CS display chip select |
14/D6 |
| SDCS SD card chip select |
13/D7 |
| FCS font library chip select |
0/D5 |
| TCS touch chip select |
4/D12 |
| SCL I2C clock |
22/SCL |
| SDA I2C data |
21/SDA |
| INIT initialization |
16/D11 |
| BUSY-TE anti-tear pin |
17/D10 |
| X1 extensible pin 1 |
NC |
| X2 extensible pin 2 |
NC |
Displays supporting GDI:
For specific usage, please refer to: GDL display wiki: https://wiki.dfrobot.com/2.0_Inches_320_240_IPS_TFT_LCD_Display_with_MicroSD_Card_Breakout_SKU_DFR0664
NOTE: Please do not reuse related pins. The GDI on the expansion shield only supports ESP32-E. If you need to use GDI for M0, please use the GDI integrated on the development board.
Power socket and EN switch

| Pin |
Function Description & Notes |
| VIN |
1. Connect to the VCC pin on the mainboard. 2. The terminal is suitable for connecting spiral batteries. Note: Do not connect the main controller to other power supplies or USB when an external power supply is connected to VIN |
| GND |
Common ground |
| EN |
Can be configured as the main controller switch. The main controller stops running when EN is connected to ground |