This tutorial introduces how to integrate the Dial Board Support Package (BSP) in the ESP-IDF development environment to quickly initialize and manage onboard peripheral drivers, improving development efficiency.
v5.4.1"." and ./export.sh in the . ./export.sh command, which is equivalent to source ./export.shgit clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git checkout v5.4.1 # recommend
./install.sh
. ./export.sh idf.py commands used later depend on ESP-IDF. Before running any command, you need to call . ./export.sh in the project directory to activate the environment variables. For more details, refer to ESP-IDF - Getting Started Guide.dial_projects. Enter the folder and activate the ESP-IDF environment variables by running export.sh from the esp-idf repository. The following commands assume dial_projects and esp-idf are at the same directory level. Adjust paths as needed. Execute the following to create a blank project template named my_project.mkdir dial_projects
cd dial_projects
. ../esp-idf/export.sh
idf.py create-project my_project cd my_project
idf.py add-dependency "espressif/m5dial^2.0.0" idf.py set-target esp32s3 vim main/my_project.c #include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "lv_demos.h"
#include "bsp/esp-bsp.h"
static char *TAG = "app_main";
#define LOG_MEM_INFO (0)
void app_main(void) {
/* Initialize display and LVGL */
bsp_display_start();
/* Set display brightness to 100% */
bsp_display_backlight_on();
ESP_LOGI(TAG, "Display LVGL demo");
bsp_display_lock(0);
lv_demo_widgets(); /* A widgets example */
// lv_demo_music(); /* A modern, smartphone-like music player demo. */
// lv_demo_stress(); /* A stress test for LVGL. */
// lv_demo_benchmark(); /* A demo to measure the performance of LVGL or
// to compare different settings. */
bsp_display_unlock();
} idf.py menuconfig under Component config -> LVGL Configuration -> Demos.
idf.py flash 