lcd_config.h 796 B

12345678910111213141516171819202122232425262728293031
  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 ENABLE_DOUBLE_BUFFER (0)
  25. #define LCD_BL_PIN BSP_IO_PORT_01_PIN_00
  26. #endif