lcd_port.h 888 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-01-08 zylx first version
  9. */
  10. #ifndef __LCD_PORT_H__
  11. #define __LCD_PORT_H__
  12. /* fire 5 inch screen, 800 * 480 */
  13. #define LCD_WIDTH 800
  14. #define LCD_HEIGHT 480
  15. #define LCD_BITS_PER_PIXEL 16
  16. #define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
  17. #define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
  18. #define LCD_HSYNC_WIDTH 2
  19. #define LCD_VSYNC_HEIGHT 2
  20. #define LCD_HBP 46
  21. #define LCD_VBP 23
  22. #define LCD_HFP 22
  23. #define LCD_VFP 22
  24. #define LCD_BACKLIGHT_USING_GPIO
  25. #define LCD_BL_GPIO_NUM GET_PIN(D, 7)
  26. #define LCD_DISP_GPIO_NUM GET_PIN(D, 4)
  27. /* fire 5 inch screen, 800 * 480 */
  28. #endif /* __LCD_PORT_H__ */