/* * SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ #include "main.h" extern "C" void app_main(void) { /*初始化显示接口*/ initialize_display_and_touch(); // Lock the mutex due to the LVGL APIs are not thread-safe //修改UI相关资源前需要先锁住调度器 if (example_lvgl_lock(-1)) { // Release the mutex example_lvgl_unlock(); } }