update lvgl config
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user