Skip to content

Commit 8294331

Browse files
Don't show FPS on screen
This makes it faster and also doesn't hide the check/ok button of the keyboard.
1 parent 66d475f commit 8294331

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

patches/lv_conf.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,12 @@ extern void *mp_lv_roots;
303303
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
304304
*LV_LOG_LEVEL_USER Only logs added by the user
305305
*LV_LOG_LEVEL_NONE Do not log anything*/
306+
// // 0 is trace, 1 is info, 2 is warn, 3 is error, 4 is user (FPS is here as 'sysmon' user)
306307
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
307308

308309
/*1: Print the log with 'printf';
309310
*0: User need to register a callback with `lv_log_register_print_cb()`*/
310-
#define LV_LOG_PRINTF 1
311+
#define LV_LOG_PRINTF 0 // this doesn't seem to print anything to the serial port, so don't use it
311312

312313
/*Set callback to print the logs.
313314
*E.g `my_print`. The prototype should be `void my_print(lv_log_level_t level, const char * buf)`
@@ -883,7 +884,7 @@ extern void *mp_lv_roots;
883884
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
884885

885886
/*0: Displays performance data on the screen, 1: Prints performance data using log.*/
886-
#define LV_USE_PERF_MONITOR_LOG_MODE 0
887+
#define LV_USE_PERF_MONITOR_LOG_MODE 1
887888
#endif
888889

889890
/*1: Show the used memory and the memory fragmentation

0 commit comments

Comments
 (0)