M5Unified
M5Stack Series unified library .
Supported framework
- ESP-IDF
- Arduino for ESP32
Supported device
- M5Stack BASIC / GRAY / GO / FIRE
- M5Stack Core2 / Tough
- M5Stack CoreS3
- M5Stick C / CPlus
- M5Stack CoreInk
- M5Station
- M5Paper
- M5ATOM Lite / Matrix / ECHO / PSRAM / U
- M5ATOMS3 / S3Lite / S3U
- M5STAMP PICO
- M5STAMPC3 / C3U
- M5STAMPS3
Supported device (external display)
- Unit LCD
- Unit OLED
- Unit RCA
- Unit GLASS
- ATOM Display (with M5ATOM Lite / Matrix / PSRAM / S3 / S3Lite)
- Module Display (with M5Stack / Core2 / Tough)
- Module RCA (with M5Stack / Core2 / Tough)
Supported device (external speaker)
- SPK HAT (with M5StickC / CPlus / M5Stack CoreInk)
- SPK HAT2 (with M5StickCPlus)
- ATOMIC SPK (with M5ATOM Lite / PSRAM / ATOMS3 / S3Lite)
- Module Display (with M5Stack / Core2 / Tough)
- Module RCA (with M5Stack / Core2 / Tough)
H/W infomation
ESP32 GPIO list
M5Stack BASIC GRAY |
M5Stack GO/FIRE |
M5Stack Core2 Tough |
M5Stick C/CPlus |
M5Stack CoreInk |
M5Paper | M5Station | M5ATOM Lite/Matrix ECHO/U PSRAM |
M5STAMP PICO |
||
---|---|---|---|---|---|---|---|---|---|---|
GPIO 0ADC2_CH1 |
M-Bus IIS_MK |
M-Bus IIS_MK |
M-Bus SPK_LRCK PDM_C(Core2) |
HAT PAD PDM_C |
EPD_RST | --- | --- | --- | GPIO 0ADC2_CH1 |
|
GPIO 1USB_TX |
M-Bus Serial |
M-Bus Serial |
M-Bus Serial |
Serial | Serial | Serial | Serial | Serial | Serial | GPIO 1USB_TX |
GPIO 2ADC2_CH2 |
M-Bus |
M-Bus |
M-Bus SPK_D |
PAD Beep(CPlus) |
Beep | PW_Hold | ReadEn | --- | --- | GPIO 2ADC2_CH2 |
GPIO 3USB_RX |
M-Bus Serial |
M-Bus Serial |
M-Bus Serial |
Serial | Serial | Serial | Serial | Serial | Serial | GPIO 3USB_RX |
GPIO 4ADC2_CH0 |
TF_CS | TF_CS | TF_CS | --- | EPD_BUSY | TF_CS | RGB LED | --- | --- | GPIO 4ADC2_CH0 |
GPIO 5 | M-Bus |
M-Bus |
LCD_CS | LCD_CS | BTN_HAT | EXT_5V | LCD_CS | Bus (P)PDM_C(U) |
--- | GPIO 5 |
GPIO 9 | --- | --- | --- | InfraRed | EPD_CS | --- | --- | --- | --- | GPIO 9 |
GPIO10 | --- | --- | --- | LED | LED | --- | --- | --- | --- | GPIO10 |
GPIO12ADC2_CH5 |
M-Bus IIS_SK |
M-Bus IIS_SK |
SPK_BCLK | --- | PW_Hold | SPI_MOSI | USB_PW | InfraRed | --- | GPIO12ADC2_CH5 |
GPIO13ADC2_CH4 |
M-Bus IIS_WS |
M-Bus IIS_WS |
M-Bus RXD2 |
SPI_SCLK | MI-Bus RXD2 |
SPI_MISO | PORT.C1 |
--- | --- | GPIO13ADC2_CH4 |
GPIO14ADC2_CH6 |
LCD_CS | LCD_CS | M-Bus TXD2 |
--- | MI-Bus TXD2 |
SPI_SCLK | PORT.C1 |
--- | --- | GPIO14ADC2_CH6 |
GPIO15ADC2_CH3 |
M-Bus IIS_OUT |
M-Bus RGB LED |
LCD_D/C | SPI_MOSI | EPD_D/C | EPD_CS | LCD_RST | --- | --- | GPIO15ADC2_CH3 |
GPIO16PSRAM |
M-Bus RXD2 |
M-Bus PORT.C RXD2 |
--- | --- | --- | --- | PORT.C2 RXD2 |
--- | --- | GPIO16PSRAM |
GPIO17PSRAM |
M-Bus TXD2 |
M-Bus PORT.C TXD2 |
--- | --- | --- | --- | PORT.C2 TXD2 |
--- | --- | GPIO17PSRAM |
GPIO18 | M-Bus SPI_SCLK |
M-Bus SPI_SCLK |
SPI_SCLK | LCD_RST | MI-Bus SPI_SCLK |
PORT.C |
SPI_SCLK | --- | GPIO18 | |
GPIO19 | M-Bus SPI_MISO |
M-Bus SPI_MISO |
M-Bus |
--- | RTC_INT | PORT.C |
LCD_D/C | Bus SPK_C(ECHO) *PDM_D(U) |
GPIO19 | |
GPIO21 | M-Bus PORT.A I2C0_SDA |
M-Bus PORT.A I2C0_SDA |
I2C1_SDA | I2C1_SDA | MI-Bus I2C1_SDA |
I2C1_SDA | I2C1_SDA | Bus I2C1_SCL |
GPIO21 | |
GPIO22 | M-Bus PORT.A I2C0_SCL |
M-Bus PORT.A I2C0_SCL |
I2C1_SCL | I2C1_SCL | MI-Bus I2C1_SCL |
I2C1_SCL | I2C1_SCL | Bus SPK_D(ECHO) |
GPIO22 | |
GPIO23 | M-Bus SPI_MOSI |
M-Bus SPI_MOSI |
SPI_MOSI | LCD_D/C | MI-Bus SPI_MOSI |
EPD_RST | SPI_MOSI | Bus PDM_D(ECHO) |
--- | GPIO23 |
GPIO25DAC1 |
M-Bus SPK_DAC |
M-Bus SPK_DAC |
M-Bus |
HAT (CPlus)PAD |
MI-Bus HAT |
PORT.A I2C0_SDA |
PORT.B1 |
Bus I2C1_SDA |
GPIO25DAC1 |
|
GPIO26DAC2 |
M-Bus |
M-Bus PORT.B |
M-Bus |
HAT PAD |
MI-Bus HAT |
PORT.B |
PORT.B2 |
PORT.A I2C0_SDA |
GPIO26DAC2 |
|
GPIO27ADC2_CH7 |
LCD_D/C | LCD_D/C | M-Bus |
AXP192 VBUSEN | BTN_PWR | EPD_BUSY | IMU_INT | RGB LED | RGB LED | GPIO27ADC2_CH7 |
GPIO32ADC1_CH4 |
LCD_BL | LCD_BL | M-Bus PORT.A I2C0_SDA |
PORT.A I2C0_SDA |
PORT.A I2C0_SDA |
PORT.A I2C0_SCL |
PORT.A I2C0_SDA |
PORT.A I2C0_SCL |
PORT.A I2C0_SDA |
GPIO32ADC1_CH4 |
GPIO33ADC1_CH5 |
LCD_RST | LCD_RST | M-Bus PORT.A I2C0_SCL |
PORT.A I2C0_SCL |
PORT.A I2C0_SCL |
PORT.B |
PORT.A I2C0_SCL |
Bus PDM_C(ECHO) |
PORT.A I2C0_SCL |
GPIO33ADC1_CH5 |
GPIO34ADC1_CH6 |
M-Bus IIS_IN |
M-Bus MIC_ADC IIS_IN |
M-Bus PDM_D(Core2) |
PDM_D | MI-Bus SPI_MISO |
--- | USB Current? | --- | GPIO34ADC1_CH6 |
|
GPIO35ADC1_CH7 |
M-Bus |
M-Bus |
M-Bus |
RTC_INT | BAT_V | BAT_V | PORT.B1 |
--- | --- | GPIO35ADC1_CH7 |
GPIO36ADC1_CH0 |
M-Bus |
M-Bus PORT.B |
M-Bus |
HAT PAD |
MI-Bus HAT |
TP_INT | PORT.B2 |
--- | --- | GPIO36ADC1_CH0 |
GPIO37ADC1_CH1 |
BTN_C | BTN_C | --- | BTN_A | SW_Up | SW_Up | BTN_A | --- | --- | GPIO37ADC1_CH1 |
GPIO38ADC1_CH2 |
BTN_B | BTN_B | M-Bus SPI_MISO |
PAD |
SW_Press | SW_Press | BTN_B | --- | --- | GPIO38ADC1_CH2 |
GPIO39ADC1_CH3 |
BTN_A | BTN_A | TP_INT | BTN_B | SW_Down | SW_Down | BTN_C | BTN | BTN | GPIO39ADC1_CH3 |
M5Stack BASIC GRAY |
M5Stack GO/FIRE |
M5Stack Core2 Tough |
M5Stick C/CPlus |
M5Stack CoreInk |
M5Paper | M5Station | M5ATOM Lite/Matrix ECHO/U PSRAM |
M5STAMP PICO |
ESP32C3 GPIO list
M5Stamp C3 |
M5Stamp C3U |
|
---|---|---|
GPIO 0 | PORT.A I2C0_SCL |
PORT.A I2C_SCL |
GPIO 1 | PORT.A I2C0_SDA |
PORT.A I2C_SDA |
GPIO 2 | RGB LED | RGB LED |
GPIO 3 | BTN_A | Bus |
GPIO 4 | Bus |
Bus |
GPIO 5 | Bus |
Bus |
GPIO 6 | Bus |
Bus |
GPIO 7 | Bus |
Bus |
GPIO 8 | Bus |
Bus |
GPIO 9 | --- | BTN_A |
GPIO10 | Bus |
Bus |
GPIO18 | PORT.U D- |
USB PORT.U D- |
GPIO19 | PORT.U D+ |
USB PORT.U D+ |
GPIO20 | USB Serial |
Bus |
GPIO21 | USB Serial |
Bus |
M5Stamp C3 |
M5Stamp C3U |
ESP32S3 GPIO list
M5Stack CoreS3 |
M5ATOMS3 / S3Lite |
M5ATOMS3U | ||
---|---|---|---|---|
GPIO 0 | M-Bus SPK_LRCK |
--- | --- | GPIO 0 |
GPIO 1 | PORT.A I2C0_SCL |
PORT.A I2C0_SCL |
PORT.A I2C0_SCL |
GPIO 1 |
GPIO 2 | PORT.A I2C0_SDA |
PORT.A I2C0_SDA |
PORT.A I2C0_SDA |
GPIO 2 |
GPIO 3 | LCD_CS | vdd3v3 | vdd3v3 | GPIO 3 |
GPIO 4 | TF_CS | InfraRed | --- | GPIO 4 |
GPIO 5 | M-Bus |
Bus |
--- | GPIO 5 |
GPIO 6 | M-Bus |
Bus |
--- | GPIO 6 |
GPIO 7 | M-Bus |
Bus |
--- | GPIO 7 |
GPIO 8 | M-Bus PORT.B |
Bus |
--- | GPIO 8 |
GPIO 9 | M-Bus PORT.B |
--- | --- | GPIO 9 |
GPIO10 | M-Bus |
--- | --- | GPIO10 |
GPIO11 | I2C1_SCL | --- | --- | GPIO11 |
GPIO12 | I2C1_SDA | --- | InfraRed | GPIO12 |
GPIO13 | M-Bus SPK_D |
--- | --- | GPIO13 |
GPIO14 | M-Bus MIC_IN |
--- | Bus |
GPIO14 |
GPIO15 | CAM_D6 | LCD_CS | --- | GPIO15 |
GPIO16 | CAM_D7 | LCD_BL | --- | GPIO16 |
GPIO17 | M-Bus PORT.C |
LCD_SCLK | Bus |
GPIO17 |
GPIO18 | M-Bus PORT.C |
--- | --- | GPIO18 |
GPIO19 | USB D-- |
USB D-- |
USB D-- |
GPIO19 |
GPIO20 | USB D++ |
USB D++ |
USB D++ |
GPIO20 |
GPIO21 | I2C_INT | LCD_MOSI | --- | GPIO21 |
GPIO33 | SPK_WCK | LCD_DC | --- | GPIO33 |
GPIO34 | SPK_BCK | LCD_RST | --- | GPIO34 |
GPIO35 | M-Bus SPI_MISO LCD DC |
RGB LED | RGB LED | GPIO35 |
GPIO36 | M-Bus SPI_SCLK |
--- | --- | GPIO36 |
GPIO37 | M-Bus SPI_MOSI |
--- | --- | GPIO37 |
GPIO38 | CAM_HREF | Bus I2C1_SDA |
PDM_DAT | GPIO38 |
GPIO39 | CAM_D2 | Bus I2C1_SCL |
PDM_CLK | GPIO39 |
GPIO40 | CAM_D3 | --- | Bus |
GPIO40 |
GPIO41 | CAM_D4 | BTN_A | BTN_A | GPIO41 |
GPIO42 | CAM_D5 | --- | Bus |
GPIO42 |
GPIO43 | M-Bus SerialTX |
--- | --- | GPIO43 |
GPIO44 | M-Bus SerialRX |
--- | --- | GPIO44 |
GPIO45 | CAM_PCLK | --- | --- | GPIO45 |
GPIO46 | CAM_VSYNC | --- | --- | GPIO46 |
GPIO47 | CAM_D9 | --- | --- | GPIO47 |
GPIO48 | CAM_D8 | --- | --- | GPIO48 |
M5Stack CoreS3 |
M5ATOMS3 / S3Lite |
M5ATOMS3U |
AXP192 IO list
M5Stack Core2 |
M5Stack Tough |
M5Stick C |
M5Stick CPlus |
M5Station | ||
---|---|---|---|---|---|---|
GPIO0 LDO0 |
BUS PW EN | BUS PW EN | MIC VCC | MIC VCC | PortA1.A2 EN | GPIO0 LDO0 |
GPIO1 | SYS LED | TP RST | --- | --- | PortB1 EN | GPIO1 |
GPIO2 | SPK EN | SPK EN | --- | --- | PortB2 EN | GPIO2 |
GPIO3 | --- | --- | --- | --- | PortC1 EN | GPIO3 |
GPIO4 | LCD RST TP RST |
LCD RST | --- | --- | PortC2 EN | GPIO4 |
EXTEN | PORT 5V EN | PORT 5V EN | PORT 5V EN | PORT 5V EN | PORT 5V EN | EXTEN |
BACKUP | RTC BAT | RTC BAT | RTC BAT | RTC BAT | --- | BACKUP |
LDO1 | RTC VDD | RTC VDD | RTC VDD | RTC VDD | RTC VDD | LDO1 |
LDO2 | LCD PW Periph PW |
LCD PW Periph PW |
LCD BL | LCD BL | --- | LDO2 |
LDO3 | VIB MOTOR | LCD BL | LCD PW | LCD PW | LCD BL | LDO3 |
DCDC1 | ESP32 VDD | ESP32 VDD | ESP32 VDD | ESP32 VDD | ESP32 VDD | DCDC1 |
DCDC2 | --- | --- | --- | --- | --- | DCDC2 |
DCDC3 | LCD BL | --- | --- | --- | --- | DCDC3 |
PinMap
M5Stack BASIC/GRAY GO/FIRE FACES II |
M5Stack Core2 Core2AWS TOUGH |
M5Stack CoreS3 |
|
---|---|---|---|
Bus | M-Bus |
M-Bus |
M-Bus |
β» HPWR=not connected to the ESP32. Used by modules capable of supplying 12V power. |
M5Stick C |
M5Stick C Plus |
M5Stack CoreInk |
M5Stamp PICO |
M5Stamp C3 |
M5Stamp C3U |
|
---|---|---|---|---|---|---|
PortA | ||||||
HAT | ||||||
Bus | MI-Bus |
ATOM Lite |
ATOM Matrix |
ATOM ECHO |
ATOM PSRAM |
ATOM U |
|
---|---|---|---|---|---|
PortA | |||||
Bus |
ATOMS3 /S3Lite |
|
---|---|
PortA | |
Bus |
SPI device
M5Stack BASIC GRAY GO/FIRE |
M5Stack Core2 Tough |
M5Stick C |
M5Stick CPlus |
M5Stack CoreInk |
M5Paper | ||
---|---|---|---|---|---|---|---|
Display | ILI9342C 320Γ240 CS:G14 |
ILI9342C 320Γ240 CS:G5 |
ST7735S 80Γ160 CS:G5 |
ST7789V2 135Γ240 CS:G5 |
GDEW0154M09 200Γ200 CS:G9 |
IT8951 960Γ540 CS:G15 |
Display |
TF Card | CS:4 | CS:4 | --- | --- | --- | CS:4 | TF Card |
I2C device
M5Stack BASIC/GRAY GO/FIRE |
M5Stack Core2 |
M5Stack Tough |
M5Stick C CPlus |
M5Stack CoreInk |
M5Paper | ATOM Matrix |
M5Station | ||
---|---|---|---|---|---|---|---|---|---|
Touch Panel |
--- | FT6336U 38h |
CHSC6540 2Eh |
--- | --- | GT911 14h or 5Dh |
--- | --- | Touch Panel |
RTC | --- | BM8563 51h |
BM8563 51h |
BM8563 51h |
BM8563 51h |
BM8563 51h |
--- | BM8563 51h |
RTC |
Power Manage |
IP5306 75h |
AXP192 34h |
AXP192 34h |
AXP192 34h |
--- | --- | --- | AXP192 34h |
Power Manage |
IMU | MPU6886 68h |
MPU6886 68h (Ext) |
--- | MPU6886 68h |
--- | --- | MPU6886 68h |
MPU6886 68h (opt) |
IMU |
IMU (old lot) |
SH200Q 6Ch |
--- | --- | SH200Q 6Ch |
--- | --- | --- | --- | IMU (old lot) |
ENV | --- | --- | --- | --- | --- | SHT30 44h |
--- | --- | ENV |
EEPROM | --- | --- | --- | --- | --- | FM24C02 50h |
--- | --- | EEPROM |
Current Voltage Monitor |
--- | --- | --- | --- | --- | --- | --- | INA3221 40h/41h (opt) |
Current Voltage Monitor |