1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2023-02-22 Rbb666 First version 9 */ 10 11 #ifndef LV_CONF_H 12 #define LV_CONF_H 13 14 #include <rtconfig.h> 15 16 /* Enable additional color format support */ 17 #define DLG_LVGL_CF 1 18 19 /* Enable sub byte color formats to be swapped. If disabled, which is recommended for 20 * performance, bitmaps need to be in correct order */ 21 #define DLG_LVGL_CF_SUB_BYTE_SWAP 0 22 23 #define DLG_LVGL_USE_GPU_RA6M3 0 24 25 #define LV_USE_PERF_MONITOR 1 26 #define LV_COLOR_DEPTH 16 27 28 #ifdef PKG_USING_ILI9341 29 #define LV_HOR_RES_MAX 240 30 #define LV_VER_RES_MAX 320 31 #define LV_COLOR_16_SWAP 1 32 #define LV_DPI_DEF 99 33 #else 34 #define LV_HOR_RES_MAX 480 35 #define LV_VER_RES_MAX 272 36 #define LV_DPI_DEF 89 37 #endif 38 39 #ifdef BSP_USING_LVGL_VIDEO_DEMO 40 #define LV_USE_FILE_EXPLORER 1 41 #if LV_USE_FILE_EXPLORER 42 /*Maximum length of path*/ 43 #define LV_FILE_EXPLORER_PATH_MAX_LEN (128) 44 /*Quick access bar, 1:use, 0:not use*/ 45 /*Requires: lv_list*/ 46 #define LV_FILE_EXPLORER_QUICK_ACCESS 0 47 #endif 48 49 #define LV_USE_FS_STDIO 1 50 #if LV_USE_FS_STDIO 51 #define LV_FS_STDIO_LETTER '/' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ 52 #define LV_FS_STDIO_PATH "/" /*Set the working directory. File/directory paths will be appended to it.*/ 53 #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ 54 #endif 55 #endif 56 57 #ifdef PKG_USING_LV_MUSIC_DEMO 58 /* music player demo */ 59 #define LV_USE_DEMO_RTT_MUSIC 1 60 #define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1 61 #define LV_FONT_MONTSERRAT_12 1 62 #define LV_FONT_MONTSERRAT_16 1 63 #define LV_COLOR_SCREEN_TRANSP 0 64 #endif /* PKG_USING_LV_MUSIC_DEMO */ 65 66 #endif 67