-
Notifications
You must be signed in to change notification settings - Fork 1
/
lv_conf.h
51 lines (41 loc) · 1.61 KB
/
lv_conf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**************************************************************************//**
* @file lv_conf.h
* @brief lvgl configuration
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*****************************************************************************/
#ifndef LV_CONF_H
#define LV_CONF_H
#define LV_USE_OS LV_OS_NONE
#if defined(__320x240__)
#define LV_HOR_RES_MAX 320
#define LV_VER_RES_MAX 240
#elif defined(__480x272__)
#define LV_HOR_RES_MAX 480
#define LV_VER_RES_MAX 272
#else
#error "Miss resolution setting"
#endif
#define LV_COLOR_DEPTH 16
#define LV_FONT_MONTSERRAT_12 1
#define LV_FONT_MONTSERRAT_16 1
/* Please comment LV_USE_DEMO_MUSIC declaration before un-comment below */
#define LV_USE_DEMO_WIDGETS 1
//#define LV_USE_DEMO_MUSIC 1
#if LV_USE_DEMO_MUSIC
#define LV_DEMO_MUSIC_AUTO_PLAY 1
#endif
#define LV_USE_SYSMON 1
#define LV_USE_PERF_MONITOR 1
#define LV_USE_LOG 0
#define CONFIG_LV_MEM_SIZE (64*1024U)
#if LV_USE_LOG == 1
//#define LV_LOG_LEVEL LV_LOG_LEVEL_TRACE
//#define LV_LOG_LEVEL LV_LOG_LEVEL_INFO
//#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
#define LV_LOG_LEVEL LV_LOG_LEVEL_ERROR
//#define LV_LOG_LEVEL LV_LOG_LEVEL_USER
//#define LV_LOG_LEVEL LV_LOG_LEVEL_NONE
#endif
#endif