upgrade to LVGL 9

This commit is contained in:
Terrence
2025-02-03 23:43:07 +08:00
parent e434cd1aed
commit c36e25ce3f
26 changed files with 119 additions and 197 deletions

View File

@@ -3,6 +3,7 @@
#include <lvgl.h>
#include <esp_timer.h>
#include <esp_log.h>
#include <string>
@@ -30,7 +31,7 @@ protected:
int width_ = 0;
int height_ = 0;
lv_disp_t *disp_ = nullptr;
lv_display_t *display_ = nullptr;
lv_obj_t *emotion_label_ = nullptr;
lv_obj_t *network_label_ = nullptr;
@@ -56,7 +57,9 @@ protected:
class DisplayLockGuard {
public:
DisplayLockGuard(Display *display) : display_(display) {
display_->Lock();
if (!display_->Lock(3000)) {
ESP_LOGE("Display", "Failed to lock display");
}
}
~DisplayLockGuard() {
display_->Unlock();