lv_conf.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 1
  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. #define LV_USE_FILE_EXPLORER 1
  32. #if LV_USE_FILE_EXPLORER
  33. /*Maximum length of path*/
  34. #define LV_FILE_EXPLORER_PATH_MAX_LEN (128)
  35. /*Quick access bar, 1:use, 0:not use*/
  36. /*Requires: lv_list*/
  37. #define LV_FILE_EXPLORER_QUICK_ACCESS 0
  38. #endif
  39. #define LV_USE_FS_STDIO 1
  40. #if LV_USE_FS_STDIO
  41. #define LV_FS_STDIO_LETTER '/' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
  42. #define LV_FS_STDIO_PATH "/" /*Set the working directory. File/directory paths will be appended to it.*/
  43. #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
  44. #endif
  45. #ifdef PKG_USING_LV_MUSIC_DEMO
  46. /* music player demo */
  47. #define LV_USE_DEMO_RTT_MUSIC 1
  48. #define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1
  49. #define LV_FONT_MONTSERRAT_12 1
  50. #define LV_FONT_MONTSERRAT_16 1
  51. #define LV_COLOR_SCREEN_TRANSP 0
  52. #endif /* PKG_USING_LV_MUSIC_DEMO */
  53. #endif