1
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
51
52
53
54
55
56
/* ... */
#pragma once
#define LCD_CMD_NOP 0x00
#define LCD_CMD_SWRESET 0x01
#define LCD_CMD_RDDID 0x04
#define LCD_CMD_RDDST 0x09
#define LCD_CMD_RDDPM 0x0A
#define LCD_CMD_RDD_MADCTL 0x0B
#define LCD_CMD_RDD_COLMOD 0x0C
#define LCD_CMD_RDDIM 0x0D
#define LCD_CMD_RDDSM 0x0E
#define LCD_CMD_RDDSR 0x0F
#define LCD_CMD_SLPIN 0x10
#define LCD_CMD_SLPOUT 0x11
#define LCD_CMD_PTLON 0x12
#define LCD_CMD_NORON 0x13
#define LCD_CMD_INVOFF 0x20
#define LCD_CMD_INVON 0x21
#define LCD_CMD_GAMSET 0x26
#define LCD_CMD_DISPOFF 0x28
#define LCD_CMD_DISPON 0x29
#define LCD_CMD_CASET 0x2A
#define LCD_CMD_RASET 0x2B
#define LCD_CMD_RAMWR 0x2C
#define LCD_CMD_RAMRD 0x2E
#define LCD_CMD_PTLAR 0x30
#define LCD_CMD_VSCRDEF 0x33
#define LCD_CMD_TEOFF 0x34
#define LCD_CMD_TEON 0x35
#define LCD_CMD_MADCTL 0x36
#define LCD_CMD_VSCSAD 0x37
#define LCD_CMD_IDMOFF 0x38
#define LCD_CMD_IDMON 0x39
#define LCD_CMD_COLMOD 0x3A
#define LCD_CMD_RAMWRC 0x3C
#define LCD_CMD_RAMRDC 0x3E
#define LCD_CMD_STE 0x44
#define LCD_CMD_GDCAN 0x45
#define LCD_CMD_WRDISBV 0x51
#define LCD_CMD_RDDISBV 0x52
#define LCD_CMD_MH_BIT (1 << 2)
#define LCD_CMD_BGR_BIT (1 << 3)
#define LCD_CMD_ML_BIT (1 << 4)
#define LCD_CMD_MV_BIT (1 << 5)
#define LCD_CMD_MX_BIT (1 << 6)
#define LCD_CMD_MY_BIT (1 << 7)