lcd_config.h 883 B

123456789101112131415161718192021222324252627282930313233
  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. * 2024-03-01 Rbb666 the first version
  9. */
  10. #ifndef __LCD_CONFIG_H_
  11. #define __LCD_CONFIG_H_
  12. typedef enum
  13. {
  14. ROTATION_ZERO = 0,
  15. ROTATION_090 = 90,
  16. ROTATION_180 = 180,
  17. ROTATION_270 = 270,
  18. } bsp_rotation;
  19. #define LCD_WIDTH DISPLAY_HSIZE_INPUT0
  20. #define LCD_HEIGHT DISPLAY_VSIZE_INPUT0
  21. #define LCD_BITS_PER_PIXEL DISPLAY_BITS_PER_PIXEL_INPUT1
  22. #define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
  23. #define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
  24. #define LCD_NUM_FRAMEBUFFERS (2)
  25. #define ENABLE_DOUBLE_BUFFER (1)
  26. #define LCD_BL_PIN BSP_IO_PORT_10_PIN_11
  27. #define LCD_RST_PIN BSP_IO_PORT_11_PIN_04
  28. #endif