M5Stack · ESP32 · 2.0" · 320×240

M5Stack Basic specifications

This page collects the pinout, free GPIOs and hardware details of the M5Stack Basic. The board isn't in the LCD Ultra Pro™ editor yet, so there's no driver for it there.

The original M5Stack Core, still sold as the Basic. It's a 54 mm square with a 2-inch 320×240 IPS screen on an ILI9342C, three buttons under the display, a 1 W speaker, a microSD slot and a small 110 mAh battery. No touch, no PSRAM.

Eight years of revisions sit behind the current v2.7. The screen went from TN to IPS in 2019, flash grew from 4 MB to 16 MB in 2020, the USB chip changed from CP2104 to CH9102 in 2021, and v2.7 added a glass front, a boosted 5.1 V Grove supply and a battery switch. Older units are common second-hand, so check the label.

Expansion is where the Basic shines. Grove Port A is I2C on GPIO 21/22, Port B carries GPIO 26 and 36, Port C is UART2 on 16/17, and the 30-pin M-Bus on the back exposes SPI, both UARTs, I2C, I2S and a few spare GPIOs. The display and SD card share one SPI bus (18, 19, 23).

M5Stack Basic board diagram with an example screen: 2.0" 320×240, ESP32
Annotated diagram of the M5Stack Basic, drawn by LCD Ultra Pro™.
Screen
2.0" · 320×240
Chip
ESP32
Memory
16 MB flash, no PSRAM
Input
no touch

Key features

  • 2.0-inch IPS, 320×240, ILI9342C
  • ESP32 with 16 MB flash (v2.5 and later)
  • Three buttons, 1 W speaker
  • microSD slot
  • Grove ports A, B, C and 30-pin M-Bus
  • 110 mAh battery, IP5306 power IC

Specifications

M5Stack Basic technical specifications
ManufacturerM5Stack
Screen size2.0"
Resolution320×240 px
Colour depth16-bit
Display controllerILI9342C (SPI)
Display interfaceSPI
TouchNone (3 buttons)
MicrocontrollerESP32
ModuleESP32-D0WDQ6-V3
CPU clock240 MHz
Internal SRAM520 KB
PSRAMNone
Flash16 MB
Wi-FiYes
BluetoothYes
Hardware variantv2.7 (2023): glass screen, boosted 5.1 V on Grove, battery switch. Earlier versions: v2.6 CH9102 USB chip, v2.5 flash raised from 4 MB to 16 MB, v2.2 IPS instead of TN. IP5306 power IC, 110 mAh battery, 1 W speaker.
Display320×240 IPS, ILI9342C: SCK 18, MOSI 23, MISO 19, CS 14, DC 27, RST 33, backlight 32
ButtonsA GPIO 39, B GPIO 38, C GPIO 37
AudioSpeaker on GPIO 25 (DAC)
PortsA: I2C 21/22; B: 26/36; C: UART2 16/17
microSDCS 4 on the shared SPI bus
Size54 × 54 × 17 mm, 49.4 g

GPIO pinout

The GPIOs the board itself uses for the display, touch and on-board peripherals, as published in the manufacturer’s documentation.

M5Stack Basic GPIO pinout
GPIOFunction
GPIO 1UART0 TX (USB serial, M-Bus)
GPIO 2M-Bus GPIO
GPIO 3UART0 RX (USB serial, M-Bus)
GPIO 4microSD CS
GPIO 5M-Bus GPIO
GPIO 14LCD CS
GPIO 16UART2 RX (Port C)
GPIO 17UART2 TX (Port C)
GPIO 18SPI SCK (LCD, microSD)
GPIO 19SPI MISO (LCD, microSD)
GPIO 21I2C SDA (Grove A, power IC)
GPIO 22I2C SCL (Grove A, power IC)
GPIO 23SPI MOSI (LCD, microSD)
GPIO 25Speaker (DAC)
GPIO 26Port B / DAC2
GPIO 27LCD DC
GPIO 32Backlight
GPIO 33LCD reset
GPIO 35M-Bus ADC (input only)
GPIO 36Port B (input only)
GPIO 37Button C
GPIO 38Button B
GPIO 39Button A

Source: github.com, docs.m5stack.com, docs.m5stack.com. Always check against your board revision before wiring.

Free GPIOs and connectors

These GPIOs are not used by the display, touch or on-board peripherals, so you can wire your own sensors, buttons or relays to them.

Free GPIO pins of the M5Stack Basic
PinCapabilitiesNote
GPIO 2GPIO, PWMOn the M-Bus
GPIO 5GPIO, PWMOn the M-Bus
GPIO 16GPIO, PWMUART2 RX on Port C
GPIO 17GPIO, PWMUART2 TX on Port C
GPIO 26GPIO, PWM, DACOn Port B and the M-Bus (DAC2)
GPIO 35GPIO, ADCOn the M-Bus, input only
GPIO 36GPIO, ADCOn Port B and the M-Bus, input only
  • Grove Port A (I2C) — GPIO 21, 22 (SDA, SCL) · HY2.0-4P

    Same bus as the IP5306 power IC (0x75)

  • Port B — GPIO 26, 36 · HY2.0-4P
  • Port C (UART2) — GPIO 16, 17 (RX, TX) · HY2.0-4P
  • M-Bus — GPIO 35, 36, 23, 25, 19, 26, 18, 3, 1, 16, 17, 21, 22, 2, 5 · 2 x 15 pin

    Also carries the I2S-labelled pins 0, 12, 13, 15, 34

Good to know before you start

  • The Basic isn't in the LCD Ultra Pro editor yet; the Core2 and CoreS3 are.
  • No PSRAM. Large LVGL buffers will not fit.
  • Units before v2.5 have only 4 MB of flash.
  • GPIO 36 and 35 are input-only.

What it is good for

  • •Button-driven menus and instruments
  • •Learning and teaching ESP32
  • •Projects built from Grove modules

LVGL support in LCD Ultra Pro™

This board is documented in the wiki, but it is not in the LCD Ultra Pro™ editor yet, so you can’t pick it there or export a project for it. The specs, pins and connectors on this page come from the manufacturer’s own material and are there to help you wire and configure it. See the board list for boards the editor supports today.

Arduino IDE settings

From the manufacturer's documentation (not tested by us yet)

BoardM5Core

Board package: M5Stack board package (Boards Manager: M5Stack)

Menu items the manufacturer doesn't mention are left at their defaults. We haven't compiled a driver for this board ourselves yet. Manufacturer's source

Frequently asked questions

Does the M5Stack Basic have a touch screen?

No. Input is through the three buttons below the display. The Core2 is the touch version.

How much flash does it have?

16 MB on v2.5 and later; earlier units have 4 MB.

Which Grove ports are free?

Port B (GPIO 26/36) and Port C (GPIO 16/17) are free. Port A shares I2C with the IP5306 power IC.

Sources

Specifications cross-checked against the manufacturer’s documentation (last checked 2026-11-03):

More in the M5Stack family

Tools for this board

All free tools →

Connect sensors and parts

All sensors and parts →

Last updated:

Something wrong on this page?

Tell me what you found. I check every report and fix the page.