M5Stack Core2
2.0" 320x240 ILI9342C with FT6336U touch. Power rails run through the AXP192 PMIC.
At a glance
| 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 |
| PSRAM | Yes |
| 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 | not connected |
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
- Port A (Grove, GPIO 32 / 33) - SDA GPIO 32, SCL GPIO 33
The preset adds these to the Hardware tab with the board, so a sensor can go straight onto the connector.
Check your revision. Backlight and panel reset are driven by the AXP192 over I2C, not by a GPIO. Initialise the PMIC before LVGL.
Designing for it in LCD Wizard
- Choose M5Stack Core2 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.
Designs for this board
Nobody has published a design for this board yet. Publish yours from the designer and it appears here and 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