HOW TO USE | BOARDS | EXAMPLES | CONTRIBUTING | LVGL port | LCD drivers |
---|
This repository provides Board Support Packages (BSPs) for various Espressif and M5Stack development boards. Written in C, each BSP offers a unified and consistent API to simplify the initialization and use of common onboard peripherals such as displays, touch panels, audio codecs, SD cards, and selected sensors. The goal is to streamline development and reduce hardware-specific boilerplate, enabling faster prototyping and cleaner application code.
- Simplify development on Espressif and M5Stack boards by providing ready-to-use peripheral initialization.
- Enable quick project startup on supported development boards, with an easy path to migrate to custom hardware.
- Facilitate cross-board development by offering a common API, making it easier to build and maintain projects for multiple boards.
The following table shows the compatibility of this BSP with different ESP-IDF versions:
4.x | 5.0 | 5.1 | 5.2 | 5.3 | 5.4 | 5.5 |
---|---|---|---|---|---|---|
โ | โ | โ๏ธ | โ๏ธ | โ๏ธ | โ๏ธ | โ๏ธ |
Board name | SoC | Supported Features | Photo |
---|---|---|---|
ESP-BOX-3 | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (es8311) ๐ Button ๐ LCD Display (st7789, ili9341) ๐ฎ IMU ๐พ uSD Card โ๏ธ Display Touch (tt21100, gt911) |
![]() |
ESP32-C3-LCDKit | esp32c3 | ๐ต Audio ๐ Audio Speaker ๐ LCD Display (gc9a01) โช Knob ๐ก LED |
![]() |
ESP32-LyraT | esp32 | ๐ต Audio ๐ค Audio Microphone (es8388) ๐ Audio Speaker (es8388) ๐ Button ๐ก LED ๐พ uSD Card |
![]() |
ESP32-P4 Function EV Board | esp32p4 | ๐ต Audio ๐ค Audio Microphone (es8311) ๐ Audio Speaker (es8311) ๐ LCD Display (ek79007, ili9881c, lt8912b) ๐พ uSD Card โ๏ธ Display Touch (gt911) |
![]() |
ESP32-S2-Kaluga Kit | esp32s2 | ๐ต Audio ๐ค Audio Microphone (es8311) ๐ Audio Speaker (es8311) ๐ Button ๐ท Camera ๐ LCD Display (st7789) ๐ก LED |
![]() |
ESP32-S3-EYE | esp32s3 | ๐ต Audio ๐ค Audio Microphone ๐ Button ๐ท Camera ๐ LCD Display (st7789) ๐ฎ IMU ๐พ uSD Card |
![]() |
ESP32-S3-KORVO-1 | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (es8311) ๐ Button ๐ก LED ๐พ uSD Card |
![]() |
ESP32-S3-Korvo-2 | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (es8311) ๐ Button ๐ท Camera ๐ LCD Display (ili9341) ๐ก LED ๐พ uSD Card โ๏ธ Display Touch (tt21100) |
![]() |
ESP32-S3-LCD-EV-Board | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (es8311) ๐ Button ๐ LCD Display โ๏ธ Display Touch |
![]() |
ESP32-S3-USB-OTG | esp32s3 | ๐ Battery ๐ Button ๐ LCD Display (st7789) ๐ก LED ๐พ uSD Card |
![]() |
DevKit BSP | - | ๐ Button ๐ก LED |
![]() |
Generic BSP | - | ๐ Button ๐ LCD Display (st7789, ili9341, gc9a01) ๐ก LED โ๏ธ Display Touch (tt21100, gt1151, gt911, cst816s, ft5x06) |
![]() |
ESP-WROVER-KIT | esp32 | ๐ Button ๐ LCD Display (st7789) ๐ก LED ๐พ uSD Card |
![]() |
M5 Atom S3 | esp32s3 | ๐ Button ๐ LCD Display (gc9a01) |
![]() |
M5Dial | esp32s3 | ๐ Button ๐ LCD Display (gc9a01) โช Knob โ๏ธ Display Touch (ft5x06) |
![]() |
M5Stack Core | esp32 | ๐ Audio Speaker ๐ Button ๐ LCD Display (ili9341) ๐พ uSD Card |
![]() |
M5Stack Core2 | esp32 | ๐ต Audio ๐ Audio Speaker ๐ LCD Display (ili9341) ๐พ uSD Card โ๏ธ Display Touch (ft5x06) |
![]() |
M5Stack CoreS3 | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (aw88298) ๐ท Camera ๐ LCD Display (ili9341) ๐พ uSD Card โ๏ธ Display Touch (ft5x06) |
![]() |
Board name | SoC | Supported Features | Photo |
---|---|---|---|
ESP-BOX | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7210) ๐ Audio Speaker (es8311) ๐ Button ๐ LCD Display (st7789) ๐ฎ IMU โ๏ธ Display Touch (tt21100) |
![]() |
ESP-BOX-Lite | esp32s3 | ๐ต Audio ๐ค Audio Microphone (es7243e) ๐ Audio Speaker (es8156) ๐ Button ๐ LCD Display (st7789) |
![]() |
ESP32-Azure IoT Kit | esp32 | ๐ Button ๐ LCD Display (ssd1306) ๐ฎ IMU ๐ก LED ๐พ uSD Card โซ SENSOR_HUMIDITY โซ SENSOR_LIGHT โซ SENSOR_MAG โซ SENSOR_PRESSURE โซ SENSOR_TEMPERATURE |
![]() |
The best way to start with ESP-BSP is by trying one of the available examples on your board.
Each example includes a README.md
file listing supported boards and usage instructions.
Here is a summary of the available examples:
Example | Description | Supported Boards | Try with ESP Launchpad |
---|---|---|---|
Audio Example | Play and record WAV file | Flash Example | |
Display Example | Show an image on the screen with a simple startup animation (LVGL) | Flash Example | |
Display, Audio and Photo Example | Complex demo: browse files from filesystem and play/display JPEG, WAV, or TXT files (LVGL) | Flash Example | |
Camera Example | Stream camera output to display (LVGL) | Flash Example | |
LVGL Benchmark Example | Run LVGL benchmark tests | - | |
LVGL Demos Example | Run the LVGL demo player - all LVGL examples are included (LVGL) | Flash Example | |
Display Rotation Example | Rotate screen using buttons or an accelerometer (BSP_CAPS_IMU , if available) |
Flash Example | |
Sensors Example | Display sensor data on a monochrome screen (LVGL) | 1 boardesp32_azure_iot_kit |
Flash Example |
USB HID Example | USB HID demo (keyboard, mouse, or gamepad visualization using LVGL) | - | |
Generic Button and LED Example | Minimal example using the Generic BSP: button and LED control | - | |
MQTT Example | Collect sensor data and publish to an MQTT server | 1 boardesp32_azure_iot_kit |
- |
bsp/name-of-the-bsp.h
: Main include file of the BSP with public APIbsp/esp-bsp.h
: Convenience include file with the same name for all BPSsbsp/display.h
andbsp/touch.h
: Only for BSPs with LCD or touch controller. Contain low level initialization functions for usage without LVGL graphical library- By default, BSPs with display are shipped with LVGL, if you are interested in BSP without LVGL you can use BSP versions with
noglib
suffix (eg.esp32_s3_eye_noglib
).
- By default, BSPs with display are shipped with LVGL, if you are interested in BSP without LVGL you can use BSP versions with
NOTE: There can be only one BSP in a single esp-idf project.
Packages from this repository are uploaded to the IDF component registry.
You can add them to your project via idf.py add-dependency
, e.g.
idf.py add-dependency esp_wrover_kit==1.0.0
When you want to use a BSP in a real project, it is highly recommended to disable configuration option CONFIG_BSP_ERROR_CHECK
in menuconfig. You should check all returned error codes from all BSP functions you call. Otherwise, if the option CONFIG_BSP_ERROR_CHECK
is enabled, any error encountered in a BSP will abort the program.
โ ๏ธ Experimental feature: This feature is under development!
A single project can be run on multiple different development boards, if the boards contain the features required by the project (such as audio, display, camera...).
For this purpose, idf.py
is extended by examples/bsp_ext.py which allows you to build an example for your specific BSP. Example command for display e.g.:
idf.py -D SDKCONFIG_DEFAULTS=sdkconfig.bsp.esp_wrover_kit build
In case you want to build locally for multiple boards at the same time, it is useful to have separate build directories for each BSP configuration. In order to achieve this, you can extend the above command like this:
idf.py -B build/wrover_kit -D SDKCONFIG_DEFAULTS=sdkconfig.bsp.esp_wrover_kit build
Note: This feature is not yet integrated to idf.py by default. If you want to use it, you must set your environmental variable
IDF_EXTRA_ACTIONS_PATH
to path toesp-bsp/examples/bsp_ext.py
.
All original source code in this repository is Copyright (c) Espressif Systems (Shanghai) Co. Ltd., and is licensed under the Apache 2.0 license.