summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lvgl/env_support/cmake/esp.cmake1
-rw-r--r--lib/lvgl/lv_conf.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/lvgl/env_support/cmake/esp.cmake b/lib/lvgl/env_support/cmake/esp.cmake
index 443fb514..4b4b91da 100644
--- a/lib/lvgl/env_support/cmake/esp.cmake
+++ b/lib/lvgl/env_support/cmake/esp.cmake
@@ -27,7 +27,6 @@ else()
${LVGL_ROOT_DIR}
${LVGL_ROOT_DIR}/src
${LVGL_ROOT_DIR}/../
- $ENV{PROJ_PATH}/src/ui/include/
REQUIRES esp_timer)
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")
diff --git a/lib/lvgl/lv_conf.h b/lib/lvgl/lv_conf.h
index fdaeb390..9617d253 100644
--- a/lib/lvgl/lv_conf.h
+++ b/lib/lvgl/lv_conf.h
@@ -87,7 +87,8 @@
*It removes the need to manually update the tick with `lv_tick_inc()`)*/
#define LV_TICK_CUSTOM 1
#if LV_TICK_CUSTOM
- #define LV_TICK_CUSTOM_INCLUDE "ui_tick.hpp" /*Header for the system time function*/
+ #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h"
+ #define LV_TICK_CUSTOM_SYS_TIME_EXPR (esp_timer_get_time() / 1000)
#endif /*LV_TICK_CUSTOM*/
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.