- Updated LVGL from 8.3 to 9.0 (removed example/docs/demo folders) - Updated esp_lvgl_port to current status of the `lvgl9` branch on `esp-bsp`: https://github.com/espressif/esp-bsp/tree/lvgl9 - Updated all boards and drivers - Removed `libs/lv_drivers` subproject as SDL is now supported by LVGL directly (although keyboard input seems broken) - Updated `libs/lv_screenshot` - Fixed the way `tt_statusbar` widget works due to behaviour change in LVGL - Updated other lvgl code
29 lines
490 B
C
29 lines
490 B
C
#include "hardware_config.h"
|
|
#include "lvgl_task.h"
|
|
#include "src/lv_init.h"
|
|
#include <stdbool.h>
|
|
|
|
#define TAG "hardware"
|
|
|
|
static bool lvgl_init() {
|
|
lv_init();
|
|
lvgl_task_start();
|
|
return true;
|
|
}
|
|
|
|
TT_UNUSED static void lvgl_deinit() {
|
|
lvgl_task_interrupt();
|
|
while (lvgl_task_is_running()) {
|
|
tt_delay_ms(10);
|
|
}
|
|
|
|
#if LV_ENABLE_GC || !LV_MEM_CUSTOM
|
|
lv_deinit();
|
|
#endif
|
|
}
|
|
|
|
HardwareConfig sim_hardware = {
|
|
.bootstrap = NULL,
|
|
.init_lvgl = &lvgl_init,
|
|
};
|