2022-11-24 16:08:56 +08:00
|
|
|
/*
|
2023-02-22 18:22:33 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2022-11-24 16:08:56 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2023-02-22 18:22:33 +08:00
|
|
|
* 2023-02-22 Rbb666 First version
|
2022-11-24 16:08:56 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_CONF_H
|
|
|
|
#define LV_CONF_H
|
|
|
|
|
2023-02-22 18:22:33 +08:00
|
|
|
#include <rtconfig.h>
|
|
|
|
|
2022-11-24 16:08:56 +08:00
|
|
|
/* Enable additional color format support */
|
|
|
|
#define DLG_LVGL_CF 1
|
|
|
|
|
|
|
|
/* Enable sub byte color formats to be swapped. If disabled, which is recommended for
|
|
|
|
* performance, bitmaps need to be in correct order */
|
|
|
|
#define DLG_LVGL_CF_SUB_BYTE_SWAP 0
|
|
|
|
|
|
|
|
#define LV_USE_PERF_MONITOR 1
|
|
|
|
#define LV_COLOR_DEPTH 16
|
|
|
|
|
2023-02-22 18:22:33 +08:00
|
|
|
#ifdef BSP_USING_SPI_LCD
|
|
|
|
#define LV_HOR_RES_MAX 240
|
|
|
|
#define LV_VER_RES_MAX 320
|
|
|
|
#define LV_COLOR_16_SWAP 1
|
|
|
|
#define LV_DPI_DEF 99
|
|
|
|
#else
|
|
|
|
#define LV_HOR_RES_MAX 480
|
|
|
|
#define LV_VER_RES_MAX 272
|
|
|
|
#define LV_DPI_DEF 89
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DLG_LVGL_USE_GPU_RA6M3 0
|
2022-11-24 16:08:56 +08:00
|
|
|
|
|
|
|
#ifdef PKG_USING_LV_MUSIC_DEMO
|
|
|
|
/* music player demo */
|
|
|
|
#define LV_USE_DEMO_RTT_MUSIC 1
|
|
|
|
#define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1
|
|
|
|
#define LV_FONT_MONTSERRAT_12 1
|
|
|
|
#define LV_FONT_MONTSERRAT_16 1
|
|
|
|
#define LV_COLOR_SCREEN_TRANSP 0
|
|
|
|
#endif /* PKG_USING_LV_MUSIC_DEMO */
|
|
|
|
|
|
|
|
#endif
|