Files

BSP: M5Stack Core

HW Reference HOW TO USE API EXAMPLES Component Registry maintenance-status

Warning

The SD card is not working simultaneously with the LCD screen. We are working on a fix.

Overview

This BSP supports the following M5Stack Core v2.7 series devices:

  • M5Stack Basic v2.7
  • M5Stack Fire v2.7
  • Other M5Stack Core based devices

M5Stack Core is a development board based on ESP32 microcontroller. It features:

  • MCU: ESP32 dual-core Xtensaยฎ 32-bit LX6 microprocessor, up to 240MHz
  • Memory: 4MB Flash + 520KB SRAM
  • Interface: USB Type-C for programming and debugging
  • Display: 2.0" TFT LCD screen (320x240 resolution) with ILI9341 controller
    • If you have a v2.2 or above, you can enable the IPS display by setting CONFIG_BSP_M5STACK_CORE_LCD_INVERT_COLOR=y in the SDK configuration. Vice versa.
  • Power Management: IP5306 power management chip for battery charging and power control
  • Audio: Single GPIO controlled speaker
  • Storage: microSD card slot (SPI interface)
  • Input: Three physical buttons (ButtonA, ButtonB, ButtonC)
  • Expansion: Bottom expansion headers for additional modules

basic fire

Capabilities and dependencies

Available Capability Controller/Codec Component Version
โœ”๏ธ ๐Ÿ“Ÿ DISPLAY ili9341 espressif/esp_lcd_ili9341
idf
^1
>=5.2
โœ”๏ธ โšซ LVGL_PORT espressif/esp_lvgl_port ^2
โŒ โ˜๏ธ TOUCH
โœ”๏ธ ๐Ÿ”˜ BUTTONS espressif/button ^4
โŒ ๐ŸŽต AUDIO
โœ”๏ธ ๐Ÿ”ˆ AUDIO_SPEAKER
โŒ ๐ŸŽค AUDIO_MIC
โœ”๏ธ ๐Ÿ’พ SDCARD idf >=5.2
โŒ ๐ŸŽฎ IMU

Compatible BSP Examples

Example Description Try with ESP Launchpad
Display Example Show an image on the screen with a simple startup animation (LVGL) Flash Example
Display Rotation Example Rotate screen using buttons or an accelerometer (BSP_CAPS_IMU, if available) Flash Example