#include #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_spi_flash.h" #include "drivers/tft.hpp" #include "drivers/sd.hpp" extern "C" void app_main(void) { printf("app_main\n"); init_sd(); deinit_sd(); init_tft(); create_demo_ui(); while (1) { vTaskDelay(pdMS_TO_TICKS(10)); lv_timer_handler(); } }