1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-08-10     zylx         first version
9  */
10 
11 #ifndef __LCD_PORT_H__
12 #define __LCD_PORT_H__
13 
14 /* rt-thread 3.5 inch screen, 320 * 480 */
15 #define LCD_HOR_SCREEN
16 #define LCD_FULL_COLOR      BLACK
17 
18 #ifndef LCD_FULL_COLOR
19 #define LCD_FULL_COLOR      WHITE
20 #endif
21 
22 #ifndef LCD_HOR_SCREEN
23 #define LCD_WIDTH           320
24 #define LCD_HEIGHT          480
25 #else
26 #define LCD_WIDTH           480
27 #define LCD_HEIGHT          320
28 #endif
29 #define LCD_BITS_PER_PIXEL  24
30 #define LCD_BYTES_PER_PIXEL  (LCD_BITS_PER_PIXEL / 8)
31 #define LCD_BUF_SIZE        (LCD_WIDTH * LCD_HEIGHT * LCD_BYTES_PER_PIXEL)
32 #define LCD_PIXEL_FORMAT    RTGRAPHIC_PIXEL_FORMAT_RGB888
33 
34 #define LCD_BACKLIGHT_USING_GPIO
35 #define LCD_BL_PIN          GET_PIN(C, 6)
36 #define LCD_RES_PIN         GET_PIN(A, 3)
37 /* rt-thread 3.5 inch screen, 320 * 480 */
38 
39 #endif /* __LCD_PORT_H__ */
40