graphics/lvgl: Add config to enable LVGL Performance Monitor
This commit is contained in:
parent
cbce79ddb3
commit
ad5fff4b0b
@ -28,6 +28,12 @@ config LV_USE_USER_DATA
|
||||
---help---
|
||||
Add a `user_data` to drivers and objects
|
||||
|
||||
config LV_USE_PERF_MONITOR
|
||||
bool "Show CPU usage and FPS count"
|
||||
default n
|
||||
---help---
|
||||
Show CPU usage and FPS count in the right bottom corner
|
||||
|
||||
menu "Graphics settings"
|
||||
|
||||
config LV_HOR_RES
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* apps/graphics/littlevgl/lv_conf.h
|
||||
* apps/graphics/lvgl/lv_conf.h
|
||||
*
|
||||
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gábor Kiss-Vámosi <kisvegabor@gmail.com>
|
||||
@ -330,7 +330,11 @@ typedef void * lv_fs_drv_user_data_t;
|
||||
|
||||
/* 1: Show CPU usage and FPS count in the right bottom corner */
|
||||
|
||||
#define LV_USE_PERF_MONITOR 0
|
||||
#ifdef CONFIG_LV_USE_PERF_MONITOR
|
||||
#define LV_USE_PERF_MONITOR CONFIG_LV_USE_PERF_MONITOR
|
||||
#else
|
||||
#define LV_USE_PERF_MONITOR 0
|
||||
#endif
|
||||
|
||||
/* 1: Use the functions and types from the older API if possible */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user