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).

- 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
| Manufacturer | M5Stack |
|---|---|
| Screen size | 2.0" |
| Resolution | 320×240 px |
| Colour depth | 16-bit |
| Display controller | ILI9342C (SPI) |
| Display interface | SPI |
| Touch | None (3 buttons) |
| Microcontroller | ESP32 |
| Module | ESP32-D0WDQ6-V3 |
| CPU clock | 240 MHz |
| Internal SRAM | 520 KB |
| PSRAM | None |
| Flash | 16 MB |
| Wi-Fi | Yes |
| Bluetooth | Yes |
| Hardware variant | v2.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. |
| Display | 320×240 IPS, ILI9342C: SCK 18, MOSI 23, MISO 19, CS 14, DC 27, RST 33, backlight 32 |
| Buttons | A GPIO 39, B GPIO 38, C GPIO 37 |
| Audio | Speaker on GPIO 25 (DAC) |
| Ports | A: I2C 21/22; B: 26/36; C: UART2 16/17 |
| microSD | CS 4 on the shared SPI bus |
| Size | 54 × 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.
| GPIO | Function |
|---|---|
| GPIO 1 | UART0 TX (USB serial, M-Bus) |
| GPIO 2 | M-Bus GPIO |
| GPIO 3 | UART0 RX (USB serial, M-Bus) |
| GPIO 4 | microSD CS |
| GPIO 5 | M-Bus GPIO |
| GPIO 14 | LCD CS |
| GPIO 16 | UART2 RX (Port C) |
| GPIO 17 | UART2 TX (Port C) |
| GPIO 18 | SPI SCK (LCD, microSD) |
| GPIO 19 | SPI MISO (LCD, microSD) |
| GPIO 21 | I2C SDA (Grove A, power IC) |
| GPIO 22 | I2C SCL (Grove A, power IC) |
| GPIO 23 | SPI MOSI (LCD, microSD) |
| GPIO 25 | Speaker (DAC) |
| GPIO 26 | Port B / DAC2 |
| GPIO 27 | LCD DC |
| GPIO 32 | Backlight |
| GPIO 33 | LCD reset |
| GPIO 35 | M-Bus ADC (input only) |
| GPIO 36 | Port B (input only) |
| GPIO 37 | Button C |
| GPIO 38 | Button B |
| GPIO 39 | Button 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.
| Pin | Capabilities | Note |
|---|---|---|
| GPIO 2 | GPIO, PWM | On the M-Bus |
| GPIO 5 | GPIO, PWM | On the M-Bus |
| GPIO 16 | GPIO, PWM | UART2 RX on Port C |
| GPIO 17 | GPIO, PWM | UART2 TX on Port C |
| GPIO 26 | GPIO, PWM, DAC | On Port B and the M-Bus (DAC2) |
| GPIO 35 | GPIO, ADC | On the M-Bus, input only |
| GPIO 36 | GPIO, ADC | On 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
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)
| Board | M5Core |
|---|
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
Connect sensors and parts
- 28BYJ-48 stepper
- A4988 stepper driver
- ACS712 current sensor
- ADS1115 ADC
- ADXL345 accelerometer
- AHT20
- AS5600 magnetic encoder
- BH1750
- BME280
- BME680
- BMP280
- BTS7960 motor driver
- CAN bus (SN65HVD230)
- Capacitive soil moisture
- DFPlayer Mini
- DHT22 / AM2302
- DS18B20
- DS3231 RTC
- EC11 rotary encoder
- ENS160
- HC-SR04
- HC-SR501 PIR
- HX711 load cell
- INA219
- INA226
- INMP441 microphone
- IRLZ44N MOSFET
- KY-023 joystick
- 4x4 matrix keypad
- LD2410 radar
- LDR photoresistor
- MAX31855 thermocouple
- MAX7219 LED matrix
- MAX98357A I2S amp
- MCP23017 GPIO expander
- microSD card
- MLX90614 IR thermometer
- MPU6050
- MQ-2 gas sensor
- NEO-6M GPS
- NTC thermistor 10k
- PCA9685 PWM driver
- Piezo buzzer
- Push button
- PZEM-004T
- RC522 RFID
- 5 V relay module
- RS-485 (MAX3485)
- SCD40
- SG90 servo
- SHT31 / SHT3x
- SIM800L GSM
- SSD1306 OLED
- SSR-40DA relay
- LoRa SX1276
- TB6612FNG motor driver
- TCS34725 colour sensor
- TP4056 battery charger
- TTP223 touch button
- VL53L0X
- WS2812B LED strip
- YF-S201 flow sensor
Last updated:
Something wrong on this page?
Tell me what you found. I check every report and fix the page.