lv_conf.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #ifndef LV_CONF_H
  11. #define LV_CONF_H
  12. #include <rtconfig.h>
  13. /* Enable additional color format support */
  14. #define DLG_LVGL_CF 1
  15. /* Enable sub byte color formats to be swapped. If disabled, which is recommended for
  16. * performance, bitmaps need to be in correct order */
  17. #define DLG_LVGL_CF_SUB_BYTE_SWAP 0
  18. #define DLG_LVGL_USE_GPU_RA6M3 0
  19. #define LV_USE_PERF_MONITOR 1
  20. #define LV_COLOR_DEPTH 16
  21. #ifdef PKG_USING_ILI9341
  22. #define LV_HOR_RES_MAX 240
  23. #define LV_VER_RES_MAX 320
  24. #define LV_COLOR_16_SWAP 1
  25. #define LV_DPI_DEF 99
  26. #else
  27. #define LV_HOR_RES_MAX 480
  28. #define LV_VER_RES_MAX 272
  29. #define LV_DPI_DEF 89
  30. #endif
  31. #ifdef BSP_USING_LVGL_VIDEO_DEMO
  32. #define LV_USE_FILE_EXPLORER 1
  33. #if LV_USE_FILE_EXPLORER
  34. /*Maximum length of path*/
  35. #define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
  36. /*Quick access bar, 1:use, 0:not use*/
  37. /*Requires: lv_list*/
  38. #define LV_FILE_EXPLORER_QUICK_ACCESS 0
  39. #endif
  40. #define LV_USE_FS_STDIO 1
  41. #if LV_USE_FS_STDIO
  42. #define LV_FS_STDIO_LETTER '/' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  43. #define LV_FS_STDIO_PATH "/" /*Set the working directory. File/directory paths will be appended to it.*/
  44. #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
  45. #endif
  46. #endif
  47. #ifdef PKG_USING_LV_MUSIC_DEMO
  48. /* music player demo */
  49. #define LV_USE_DEMO_RTT_MUSIC 1
  50. #define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1
  51. #define LV_FONT_MONTSERRAT_12 1
  52. #define LV_FONT_MONTSERRAT_16 1
  53. #define LV_COLOR_SCREEN_TRANSP 0
  54. #endif /* PKG_USING_LV_MUSIC_DEMO */
  55. #endif