Skip to content

Commit

Permalink
update lvgl config
Browse files Browse the repository at this point in the history
  • Loading branch information
mars3142 committed Aug 15, 2023
1 parent ef3e71d commit 43c3b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]*/
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/gfx/lv_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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

Expand Down

0 comments on commit 43c3b1d

Please sign in to comment.