M5Stack Core2 (v1.0, AXP192)
2.0" 320x240 ILI9342C with FT6336U touch. The first Core2: its panel's supply, reset and backlight are the AXP192's.

Building for it
A project is made for one toolchain, picked when you start it. For this board you can use three of the four:
| Toolchain | |
|---|---|
| Arduino (C++) | Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project |
| MicroPython | Change a screen by editing a file on the board. No compiler once it is flashed. Start a project |
| ESPHome | A line it sets before the panel is Power LDO2, a supply of its power chip. A panel reset, or a line set before the panel, that is a supply of the power chip is switched by the Arduino, ESP-IDF and MicroPython exports; ESPHome has no component for the AXP2101 or the AXP192, so nothing would switch it and the panel would stay in reset. Use the Arduino, ESP-IDF or MicroPython export. |
| ESP-IDF (C) | Espressif's own framework: esp_lcd, the component registry and idf.py, with nothing of Arduino in it. Start a project |
At a glance
| Part | Detail |
|---|---|
| Maker | M5Stack |
| MCU | ESP32 (WROOM / WROVER) Xtensa LX6 dual-core @ 240 MHz, 520 KB SRAM (+ up to 8 MB PSRAM on WROVER) |
| Display | Ilitek ILI9342 / ILI9342C, 320 x 240 px, SPI (4-wire serial), 16-bit colour |
| Touch | FocalTech FT6236 / FT6336U (capacitive, I2C) |
| Backlight | Always on, or controlled by the board |
| Memory | 16 MB flash, 8 MB quad PSRAM (N16R8) |
| Graphics library | LovyanGFX |
Display pins
ILI9342 / ILI9342C on SPI (4-wire serial): SPI clock 40 MHz, host VSPI, BGR colour order, inversion on.
| Signal | Pin |
|---|---|
| SCK / CLK | GPIO 18 |
| MOSI / SDA | GPIO 23 |
| MISO / SDO | GPIO 38 |
| CS | GPIO 5 |
| DC / RS | GPIO 15 |
| RESET | Power GPIO4 (power chip supply) |
Touch pins
FT6236 / FT6336U: I2C address 0x38, 400 kHz, shares the display bus.
| Signal | Pin |
|---|---|
| SDA | GPIO 21 |
| SCL | GPIO 22 |
| INT / IRQ | GPIO 39 |
| RESET | not connected |
Also on the board
- Internal I2C (GPIO 21 / 22) - SDA GPIO 21, SCL GPIO 22
- Port A (Grove, GPIO 32 / 33) - SDA GPIO 32, SCL GPIO 33
- SPI (TF card, shared with the panel) - SCK GPIO 18, MOSI GPIO 23, MISO GPIO 38
- Power - AXP192, at 0x34, on Internal I2C (GPIO 21 / 22)
The panel's supply (LDO2), its reset (GPIO4), the backlight (DCDC3) and the speaker amplifier's enable (GPIO2) are this chip's: it is started before the panel. - SDCard - SD card, on SPI (TF card, shared with the panel), CS GPIO 4 (arrives switched off in a new design)
The TF card slot, on the panel's SPI pins (18 / 23 / 38) with CS 4, powered by LDO2 with the panel. Switched off as it arrives: switch it on to use a card. - Power LDO2 (power chip supply) is set high at boot - Panel and SD card supply (LDO2, 3.3 V)
- Power DC3 (power chip supply) is set high at boot - Backlight (DCDC3)
The preset adds these to the Hardware tab with the board, so a sensor can go straight onto the connector.
Check your revision. This is the first Core2 (v1.0), with an AXP192 power chip; a Core2 v1.1 has an AXP2101 - choose the v1.1 preset for that one (the chip's id says which: 0x03 at register 0x03 is an AXP192, 0x4A an AXP2101). The panel's supply, reset and backlight are driven through the AXP192 as M5Stack's own start-up drives them; the backlight is on and does not dim. MicroPython starts the chip before the panel too, on the touch panel I2C bus; ESPHome has no component for it and is not offered. The speaker (an NS4168 on I2S: BCLK 12, LRCK 0, DATA 2, enabled through the AXP192's GPIO2, held off until the player starts) and the TF card (CS 4, on the panel's SPI pins) come with it, switched off, as M5Stack's M5Unified has them; the MicroPython export has neither (it has no audio player, and cannot share the panel's SPI pins with the card). Compiled; not seen on a panel by LCD Wizard.
Designing for it in LCD Wizard
- Choose M5Stack Core2 (v1.0, AXP192) on the Hardware tab (or use the button above) and every pin on this page is filled in. The export writes the sketch,
lcd_pins.h, the LovyanGFX configuration,lv_conf.handplatformio.ini- a project that builds for this board as it comes. - The FT6236 / FT6336U is capacitive and needs no calibration. The firmware resets it and checks it answers on every boot.
- With PSRAM the LVGL memory pool can live there, leaving internal RAM for everything else.
- Screens are designed for 320 x 240 px in either orientation, with LVGL 9 or LVGL 8.
The parts
ILI9342 / ILI9342C. Landscape-native sibling of the ILI9341. Used by M5Stack Core / Core2.
FT6236 / FT6336U. Register-compatible with the FT6206. Very common on 2.8"-3.5" capacitive TFTs.
ESP32 (WROOM / WROVER). No native RGB parallel peripheral - use SPI or an 8/16-bit i80 bus.
LovyanGFX. Widest panel and bus coverage, DMA on ESP32. Configured with a C++ config class.
The pinout on one page
Every pin above, laid out to print and keep beside the bench. Generated from this preset, so it says exactly what the designer writes into lcd_pins.h.
Download the pinout (PNG)Open it as SVG
The same pins as data - board.json and pins.csv - are in the open pinout dataset on GitHub, free to reuse under CC BY 4.0.
From the people who made it
The board’s own documentation. Pinouts on vendor pages do sometimes disagree with the hardware in front of you - where this page and that one differ, trust your board and tell us.
- The vendor’s product page
- Vendor documentation
- Schematic (PDF)
- m5stack/M5Core2 Arduino library (vendor GitHub)
- AXP192 PMIC datasheet (hosted by M5Stack)
Designs for this board
Clone any of them into the designer, or see every design for this board in the gallery.
Similar boards
Next
- Quick start - from an empty screen to firmware on the board
- Boards and displays - presets, controllers, pins and touch in the designer
- Flashing and configuration - PlatformIO, the Arduino IDE and first-boot checks
- Troubleshooting - a white screen, mirrored image or touch that misses