lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
339 stars 285 forks source link

Move DISP_BUF_SIZE calculation to helper function #160

Closed C47D closed 2 years ago

C47D commented 2 years ago

Move DISP_BUF_SIZE calculation to a helper function so we can use it with LVGL v7 and LVGL v8.

DISP_BUF_SIZE is used for:

DISP_BUF_SIZE value is determined by the LVGL v7 configuration option LV_HOR_RES_MAX and sometimes by also using the LVGL v7 configuration option LV_VER_RES_MAX. Both of those options are no longer present in LVGL v8, so the DISP_BUF_SIZE value has to be calculated differently.

C47D commented 2 years ago

Handled in #156