1 /* 2 * Copyright (c) 2006-2024, 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 #if LVGL_VERSION_MAJOR < 9 17 #define LV_USE_GPU_RA6M3_G2D 0 18 #else 19 #define LV_USE_DRAW_DAVE2D 1 20 #endif 21 22 #define LV_USE_SYSMON 1 23 #define LV_USE_PERF_MONITOR 1 24 #define LV_COLOR_DEPTH 16 25 26 #ifdef PKG_USING_ILI9341 27 #define LV_HOR_RES_MAX 240 28 #define LV_VER_RES_MAX 320 29 #define LV_COLOR_16_SWAP 1 30 #define LV_DPI_DEF 99 31 #else 32 #define LV_HOR_RES_MAX 480 33 #define LV_VER_RES_MAX 272 34 #define LV_DPI_DEF 89 35 #endif /* PKG_USING_ILI9341 */ 36 37 #ifdef BSP_USING_LVGL_WIDGETS_DEMO 38 #define LV_USE_DEMO_WIDGETS 1 39 #define LV_DEMO_WIDGETS_SLIDESHOW 0 40 #endif /* BSP_USING_LVGL_WIDGETS_DEMO */ 41 42 /*Benchmark your system*/ 43 #ifdef BSP_USING_LVGL_BENCHMARK_DEMO 44 #define LV_USE_DEMO_BENCHMARK 1 45 /*Use RGB565A8 images with 16 bit color depth instead of ARGB8565*/ 46 #define LV_DEMO_BENCHMARK_RGB565A8 1 47 #define LV_FONT_MONTSERRAT_14 1 48 #define LV_FONT_MONTSERRAT_24 1 49 #endif /* BSP_USING_LVGL_BENCHMARK_DEMO */ 50 51 /*Stress test for LVGL*/ 52 #ifdef BSP_USING_LVGL_STRESS_DEMO 53 #define LV_USE_DEMO_STRESS 1 54 #endif /* BSP_USING_LVGL_STRESS_DEMO */ 55 56 /*Render test for LVGL*/ 57 #ifdef BSP_USING_LVGL_RENDER_DEMO 58 #define LV_USE_DEMO_RENDER 1 59 #endif /* BSP_USING_LVGL_RENDER_DEMO */ 60 61 #if LVGL_VERSION_MAJOR < 9 62 #ifdef PKG_USING_LV_MUSIC_DEMO 63 /* music player demo */ 64 #define LV_USE_DEMO_RTT_MUSIC 1 65 #define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1 66 #define LV_FONT_MONTSERRAT_12 1 67 #define LV_FONT_MONTSERRAT_16 1 68 #define LV_COLOR_SCREEN_TRANSP 0 69 #endif /* PKG_USING_LV_MUSIC_DEMO */ 70 #else 71 /*Music player demo*/ 72 #ifdef BSP_USING_LVGL_MUSIC_DEMO 73 #define LV_USE_DEMO_MUSIC 1 74 #define LV_DEMO_MUSIC_SQUARE 1 75 #define LV_DEMO_MUSIC_LANDSCAPE 0 76 #define LV_DEMO_MUSIC_ROUND 0 77 #define LV_DEMO_MUSIC_LARGE 0 78 #define LV_DEMO_MUSIC_AUTO_PLAY 1 79 #define LV_FONT_MONTSERRAT_12 1 80 #define LV_FONT_MONTSERRAT_16 1 81 #endif /* BSP_USING_LVGL_MUSIC_DEMO */ 82 #endif /* LVGL_VERSION_MAJOR < 9 */ 83 84 #endif 85