28 lines
508 B
C++
28 lines
508 B
C++
/*
|
|
* 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 the display interface */
|
|
initialize_display_and_touch();
|
|
|
|
// Lock the mutex because LVGL APIs are not thread-safe
|
|
// Need to lock the scheduler before modifying UI-related resources
|
|
if (example_lvgl_lock(-1)) {
|
|
|
|
|
|
|
|
|
|
// Release the mutex
|
|
example_lvgl_unlock();
|
|
}
|
|
|
|
} |