#include "lvgl_i.h"

#include "display_i.h"
#include "touch_i.h"
#include "ui/lvgl_sync.h"

bool ws3t_init_lvgl() {
    tt_lvgl_sync_set(&ws3t_display_lock, &ws3t_display_unlock);

    lv_disp_t* display = ws3t_display_create();
    if (display == NULL) {
        return false;
    }

    ws3t_touch_init(display);

    return true;
}
