-
Notifications
You must be signed in to change notification settings - Fork 8
/
board.h
51 lines (43 loc) · 1.31 KB
/
board.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#define LCD_PCLK_GPIO (14)
#define LCD_DE_GPIO (40)
#define LCD_VSYNC_GPIO (48)
#define LCD_HSYNC_GPIO (47)
#define RGB_B0 (9)
#define RGB_B1 (10)
#define RGB_B2 (11)
#define RGB_B3 (12)
#define RGB_B4 (13)
#define RGB_B5 (-1)
#define RGB_G0 (16)
#define RGB_G1 (17)
#define RGB_G2 (18)
#define RGB_G3 (8)
#define RGB_G4 (3)
#define RGB_G5 (46)
#define RGB_R0 (4)
#define RGB_R1 (5)
#define RGB_R2 (6)
#define RGB_R3 (7)
#define RGB_R4 (15)
#define RGB_R5 (-1)
#define LCD_DATA0_GPIO (RGB_B0) // B0
#define LCD_DATA1_GPIO (RGB_B1) // B1
#define LCD_DATA2_GPIO (RGB_B2) // B2
#define LCD_DATA3_GPIO (RGB_B3) // B3
#define LCD_DATA4_GPIO (RGB_B4) // B4
#define LCD_DATA5_GPIO (RGB_G0) // G0
#define LCD_DATA6_GPIO (RGB_G1) // G1
#define LCD_DATA7_GPIO (RGB_G2) // G2
#define LCD_DATA8_GPIO (RGB_G3) // G3
#define LCD_DATA9_GPIO (RGB_G4) // G4
#define LCD_DATA10_GPIO (RGB_G5) // G5
#define LCD_DATA11_GPIO (RGB_R0) // R0
#define LCD_DATA12_GPIO (RGB_R1) // R1
#define LCD_DATA13_GPIO (RGB_R2) // R2
#define LCD_DATA14_GPIO (RGB_R3) // R3
#define LCD_DATA15_GPIO (RGB_R4) // R4
#define LCD_DISP_EN_GPIO (-1)
#define LCD_PIN_BK_LIGHT 45
#define LCD_BK_LIGHT_ON_LEVEL 1
#define LCD_BK_LIGHT_OFF_LEVEL !LCD_BK_LIGHT_ON_LEVEL