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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
#include "lcd.h"
enum lcd_command {
NOP = 0x0,
SWRESET = 0x1,
/** Read display ID */
RDDID = 0x4,
/** Read display status */
RDDST = 0x9,
/** Read display */
RDDPM = 0xa,
/** Read display */
RDD_MADCTL = 0xb,
/** Read display pixel */
RDD_COLMOD = 0xc,
/** Read display image */
RDDIM = 0xd,
/** Read display signal */
RDDSM = 0xe,
/** Read display self-diagnostic result */
RDDSDR = 0xf,
/** Sleep in */
SLPIN = 0x10,
/** Sleep out */
SLPOUT = 0x11,
/** Partial mode */
PTLON = 0x12,
/** Normal mode */
NORON = 0x13,
/** Display inversion off */
INVOFF = 0x20,
/** Display inversion on */
INVON = 0x21,
/** */
GAMSET = 0x26,
/** Display off */
DISPOFF = 0x28,
/** Display on */
DISPON = 0x29,
/** Column address set */
CASET = 0x2a,
/** Row address set */
RASET = 0x2b,
/** RAM write */
RAMWR = 0x2c,
/** RAM read */
RAMRD = 0x2e,
/** Partial start/end address set */
PTLAR = 0x30,
/** Vertical scrolling definition */
VSCRDEF = 0x33,
/** Tearing effect line off */
TEOFF = 0x34,
/** Tearing effect line on */
TEON = 0x35,
/** Memory data access control */
MADCTL = 0x36,
/** Vertical scrolling start address */
VSCRSADD = 0x37,
/** Idle mode off */
IDMOFF = 0x38,
/** Idle mode on */
IDMON = 0x39,
/** Interface pixel format */
COLMOD = 0x3a,
/** RAM write continue */
RAMWRC = 0x3c,
/** RAM read continue */
RAMRDC = 0x3e,
/** Set tear scanline */
TESCAN = 0x44,
/** Get scanline */
RDTESCAN = 0x45,
/** Write display brightness */
WRDISBV = 0x51,
/** Read display brightness value */
RDDISBV = 0x52,
/** Write CTRL value display*/
RDCTRLD = 0x54,
/** Write content adaptive brightness control and color enhancement */
WRCACE = 0x55,
/** Read content adaptive brightness control */
RDCABC = 0x56,
/** Write CABC minimum brightness */
WRCABCMB = 0x5e,
/** Read CABC minimum brightness */
RDCABCMB = 0x5f,
/** Read automatic brightness control self-diagnostic result */
RDABCSDR = 0x68,
/** Read ID1 */
RDID1 = 0xda,
/** Read ID2 */
RDID2 = 0xdb,
/** Read ID3 */
RDID3 = 0xdc,
};
|