1
0

lv_conf.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 LV_USE_PERF_MONITOR 1
  19. #define LV_COLOR_DEPTH 16
  20. #ifdef BSP_USING_SPI_LCD
  21. #define LV_HOR_RES_MAX 240
  22. #define LV_VER_RES_MAX 320
  23. #define LV_COLOR_16_SWAP 1
  24. #define LV_DPI_DEF 99
  25. #else
  26. #define LV_HOR_RES_MAX 480
  27. #define LV_VER_RES_MAX 272
  28. #define LV_DPI_DEF 89
  29. #endif
  30. #define DLG_LVGL_USE_GPU_RA6M3 0
  31. #ifdef PKG_USING_LV_MUSIC_DEMO
  32. /* music player demo */
  33. #define LV_USE_DEMO_RTT_MUSIC 1
  34. #define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1
  35. #define LV_FONT_MONTSERRAT_12 1
  36. #define LV_FONT_MONTSERRAT_16 1
  37. #define LV_COLOR_SCREEN_TRANSP 0
  38. #endif /* PKG_USING_LV_MUSIC_DEMO */
  39. #endif