diff --git a/lvgl_helpers.h b/lvgl_helpers.h index c010174..6bd01b0 100644 --- a/lvgl_helpers.h +++ b/lvgl_helpers.h @@ -22,7 +22,13 @@ extern "C" { /********************* * DEFINES *********************/ - +/* Backward compatibility for LV_HOR_RES_MAX & LV_VER_RES_MAX */ +#if defined (CONFIG_LV_HOR_RES_MAX) +#define LV_HOR_RES_MAX CONFIG_LV_HOR_RES_MAX +#endif +#if defined (CONFIG_LV_VER_RES_MAX) +#define LV_VER_RES_MAX CONFIG_LV_VER_RES_MAX +#endif /* DISP_BUF_SIZE value doesn't have an special meaning, but it's the size * of the buffer(s) passed to LVGL as display buffers. The default values used * were the values working for the contributor of the display controller.