From 43c3b1de609ba0b15278061f9fd35619eecb9065 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Tue, 15 Aug 2023 15:07:44 +0200 Subject: [PATCH] update lvgl config --- include/lv_conf.h | 6 +++--- src/gfx/lv_setup.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/lv_conf.h b/include/lv_conf.h index e463ea0..90335ba 100644 --- a/include/lv_conf.h +++ b/include/lv_conf.h @@ -78,7 +78,7 @@ *====================*/ /*Default display refresh period. LVG will redraw changed areas with this period time*/ -#define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/ +#define LV_DISP_DEF_REFR_PERIOD 16 /*[ms]*/ /*Input device read period in milliseconds*/ #define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/ @@ -230,7 +230,7 @@ *-----------*/ /*Enable the log module*/ -#define LV_USE_LOG 0 +#define LV_USE_LOG 1 #if LV_USE_LOG /*How important log should be added: @@ -244,7 +244,7 @@ /*1: Print the log with 'printf'; *0: User need to register a callback with `lv_log_register_print_cb()`*/ - #define LV_LOG_PRINTF 0 + #define LV_LOG_PRINTF 1 /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ #define LV_LOG_TRACE_MEM 1 diff --git a/src/gfx/lv_setup.cpp b/src/gfx/lv_setup.cpp index 5bd9f4b..2bbfed6 100644 --- a/src/gfx/lv_setup.cpp +++ b/src/gfx/lv_setup.cpp @@ -70,7 +70,7 @@ void read_cb(lv_indev_drv_t *indev_driver, lv_indev_data_t *data) void print_cb(const char *buf) { - log_d("%s", buf); + ESP_LOGD("lv_log", "%s", buf); } void lv_begin() @@ -80,7 +80,7 @@ void lv_begin() tft.startWrite(); tft.setRotation(1); -#if LV_USE_LOG +#if LV_LOG_PRINTF lv_log_register_print_cb(print_cb); #endif