10 static const uint8_t
PROGMEM INITCMD_M5STACK[] = {
11 0xEF, 3, 0x03, 0x80, 0x02,
12 0xCF, 3, 0x00, 0xC1, 0x30,
13 0xED, 4, 0x64, 0x03, 0x12, 0x81,
14 0xE8, 3, 0x85, 0x00, 0x78,
15 0xCB, 5, 0x39, 0x2C, 0x00, 0x34, 0x02,
18 ILI9XXX_PWCTR1 , 1, 0x23,
19 ILI9XXX_PWCTR2 , 1, 0x10,
20 ILI9XXX_VMCTR1 , 2, 0x3e, 0x28,
21 ILI9XXX_VMCTR2 , 1, 0x86,
22 ILI9XXX_MADCTL , 1, MADCTL_BGR,
23 ILI9XXX_VSCRSADD, 1, 0x00,
24 ILI9XXX_PIXFMT , 1, 0x55,
25 ILI9XXX_FRMCTR1 , 2, 0x00, 0x13,
26 ILI9XXX_DFUNCTR , 3, 0x08, 0x82, 0x27,
28 ILI9XXX_GAMMASET , 1, 0x01,
29 ILI9XXX_GMCTRP1 , 15, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08,
30 0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
32 ILI9XXX_GMCTRN1 , 15, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07,
33 0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
35 ILI9XXX_SLPOUT , 0x80,
36 ILI9XXX_DISPON , 0x80,
40 static const uint8_t
PROGMEM INITCMD_M5CORE[] = {
41 ILI9XXX_SETEXTC, 3, 0xFF,0x93,0x42,
42 ILI9XXX_PWCTR1 , 2, 0x12, 0x12,
43 ILI9XXX_PWCTR2 , 1, 0x03,
44 ILI9XXX_VMCTR1 , 1, 0xF2,
45 ILI9XXX_IFMODE , 1, 0xE0,
46 0xF6 , 3, 0x01, 0x00, 0x00,
47 ILI9XXX_GMCTRP1,15, 0x00,0x0C,0x11,0x04,0x11,0x08,0x37,0x89,0x4C,0x06,0x0C,0x0A,0x2E,0x34,0x0F,
48 ILI9XXX_GMCTRN1,15, 0x00,0x0B,0x11,0x05,0x13,0x09,0x33,0x67,0x48,0x07,0x0E,0x0B,0x2E,0x33,0x0F,
49 ILI9XXX_DFUNCTR, 4, 0x08,0x82,0x1D,0x04,
51 ILI9XXX_DISPON , 0x80,
52 ILI9XXX_SLPOUT , 0x80,
59 static const uint8_t
PROGMEM INITCMD_ILI9341[] = {
60 0xEF, 3, 0x03, 0x80, 0x02,
61 0xCF, 3, 0x00, 0xC1, 0x30,
62 0xED, 4, 0x64, 0x03, 0x12, 0x81,
63 0xE8, 3, 0x85, 0x00, 0x78,
64 0xCB, 5, 0x39, 0x2C, 0x00, 0x34, 0x02,
67 ILI9XXX_PWCTR1 , 1, 0x23,
68 ILI9XXX_PWCTR2 , 1, 0x10,
69 ILI9XXX_VMCTR1 , 2, 0x3e, 0x28,
70 ILI9XXX_VMCTR2 , 1, 0x86,
71 ILI9XXX_MADCTL , 1, 0x48,
72 ILI9XXX_VSCRSADD, 1, 0x00,
73 ILI9XXX_PIXFMT , 1, 0x55,
74 ILI9XXX_FRMCTR1 , 2, 0x00, 0x18,
75 ILI9XXX_DFUNCTR , 3, 0x08, 0x82, 0x27,
77 ILI9XXX_GAMMASET , 1, 0x01,
78 ILI9XXX_GMCTRP1 , 15, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08,
79 0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
81 ILI9XXX_GMCTRN1 , 15, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07,
82 0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
84 ILI9XXX_SLPOUT , 0x80,
85 ILI9XXX_DISPON , 0x80,
89 static const uint8_t
PROGMEM INITCMD_ILI9481[] = {
90 ILI9XXX_SLPOUT , 0x80,
91 ILI9XXX_PWSET , 3, 0x07, 0x41, 0x1D,
92 ILI9XXX_VMCTR , 3, 0x00, 0x1C, 0x1F,
93 ILI9XXX_PWSETN , 2, 0x01, 0x11,
94 ILI9XXX_PWCTR1 , 5, 0x10, 0x3B, 0x00, 0x02, 0x11,
95 ILI9XXX_VMCTR1 , 1, 0x03,
96 ILI9XXX_IFCTR , 1, 0x83,
97 ILI9XXX_GMCTR ,12, 0x00, 0x26, 0x21, 0x00, 0x00, 0x1F, 0x65, 0x23, 0x77, 0x00, 0x0F, 0x00,
98 ILI9XXX_IFMODE , 1, 0x00,
99 ILI9XXX_PTLAR , 4, 0, 0, 1, 0xDF,
101 ILI9XXX_MADCTL , 1, MADCTL_MV | MADCTL_BGR,
102 ILI9XXX_CSCON , 1, 0x01,
103 ILI9XXX_PIXFMT, 1, 0x55,
104 ILI9XXX_DISPON, 0x80,
108 static const uint8_t
PROGMEM INITCMD_ILI9481_18[] = {
109 ILI9XXX_SLPOUT , 0x80,
110 ILI9XXX_PWSET , 3, 0x07, 0x41, 0x1D,
111 ILI9XXX_VMCTR , 3, 0x00, 0x1C, 0x1F,
112 ILI9XXX_PWSETN , 2, 0x01, 0x11,
113 ILI9XXX_PWCTR1 , 5, 0x10, 0x3B, 0x00, 0x02, 0x11,
114 ILI9XXX_VMCTR1 , 1, 0x03,
115 ILI9XXX_IFCTR , 1, 0x83,
116 ILI9XXX_GMCTR ,12, 0x00, 0x26, 0x21, 0x00, 0x00, 0x1F, 0x65, 0x23, 0x77, 0x00, 0x0F, 0x00,
117 ILI9XXX_IFMODE , 1, 0x00,
118 ILI9XXX_PTLAR , 4, 0, 0, 1, 0xDF,
120 ILI9XXX_MADCTL , 1, MADCTL_MX| MADCTL_BGR,
121 ILI9XXX_CSCON , 1, 0x01,
122 ILI9XXX_PIXFMT, 1, 0x66,
123 ILI9XXX_DISPON, 0x80,
127 static const uint8_t
PROGMEM INITCMD_ILI9486[] = {
128 ILI9XXX_SLPOUT, 0x80,
129 ILI9XXX_PIXFMT, 1, 0x55,
130 ILI9XXX_PWCTR3, 1, 0x44,
131 ILI9XXX_VMCTR1, 4, 0x00, 0x00, 0x00, 0x00,
132 ILI9XXX_GMCTRP1, 15, 0x0f,0x1f,0x1c,0x0c,0x0f,0x08,0x48,0x98,0x37,0x0a,0x13,0x04,0x11,0x0d,0x00,
133 ILI9XXX_GMCTRN1, 15, 0x0f,0x32,0x2e,0x0b,0x0d,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,
134 ILI9XXX_INVOFF, 0x80,
135 ILI9XXX_MADCTL, 1, 0x48,
136 ILI9XXX_DISPON, 0x80,
143 static const uint8_t INITCMD_ILI9488[] = {
144 ILI9XXX_GMCTRP1,15, 0x0f, 0x24, 0x1c, 0x0a, 0x0f, 0x08, 0x43, 0x88, 0x32, 0x0f, 0x10, 0x06, 0x0f, 0x07, 0x00,
145 ILI9XXX_GMCTRN1,15, 0x0F, 0x38, 0x30, 0x09, 0x0f, 0x0f, 0x4e, 0x77, 0x3c, 0x07, 0x10, 0x05, 0x23, 0x1b, 0x00,
147 ILI9XXX_PWCTR1, 2, 0x17, 0x15,
148 ILI9XXX_PWCTR2, 1, 0x41,
149 ILI9XXX_VMCTR1, 3, 0x00, 0x12, 0x80,
151 ILI9XXX_IFMODE, 1, 0x00,
152 ILI9XXX_FRMCTR1, 1, 0xA0,
153 ILI9XXX_INVCTR, 1, 0x02,
157 ILI9XXX_ADJCTL3, 4, 0xA9, 0x51, 0x2C, 0x82,
158 ILI9XXX_PIXFMT, 1, 0x66,
159 ILI9XXX_SLPOUT, 0x80,
160 ILI9XXX_DISPON, 0x80,
164 static const uint8_t INITCMD_WAVESHARE_RES_3_5[] = {
165 ILI9XXX_PWCTR3, 1, 0x33,
166 ILI9XXX_VMCTR1, 3, 0x00, 0x1e, 0x80,
167 ILI9XXX_FRMCTR1, 1, 0xA0,
168 ILI9XXX_GMCTRP1, 15, 0x0, 0x13, 0x18, 0x04, 0x0F, 0x06, 0x3a, 0x56, 0x4d, 0x03, 0x0a, 0x06, 0x30, 0x3e, 0x0f,
169 ILI9XXX_GMCTRN1, 15, 0x0, 0x13, 0x18, 0x01, 0x11, 0x06, 0x38, 0x34, 0x4d, 0x06, 0x0d, 0x0b, 0x31, 0x37, 0x0f,
170 ILI9XXX_PIXFMT, 1, 0x55,
171 ILI9XXX_SLPOUT, 0x80,
176 static const uint8_t
PROGMEM INITCMD_ILI9488_A[] = {
177 ILI9XXX_GMCTRP1,15, 0x00, 0x03, 0x09, 0x08, 0x16, 0x0A, 0x3F, 0x78, 0x4C, 0x09, 0x0A, 0x08, 0x16, 0x1A, 0x0F,
178 ILI9XXX_GMCTRN1,15, 0x00, 0x16, 0x19, 0x03, 0x0F, 0x05, 0x32, 0x45, 0x46, 0x04, 0x0E, 0x0D, 0x35, 0x37, 0x0F,
180 ILI9XXX_PWCTR1, 2, 0x17, 0x15,
181 ILI9XXX_PWCTR2, 1, 0x41,
182 ILI9XXX_VMCTR1, 3, 0x00, 0x12, 0x80,
184 ILI9XXX_IFMODE, 1, 0x00,
185 ILI9XXX_FRMCTR1, 1, 0xA0,
186 ILI9XXX_INVCTR, 1, 0x02,
188 ILI9XXX_DFUNCTR, 2, 0x02, 0x02,
192 ILI9XXX_ADJCTL3, 4, 0xA9, 0x51, 0x2C, 0x82,
194 ILI9XXX_MADCTL, 1, 0x28,
196 ILI9XXX_PIXFMT, 1, 0x66,
204 ILI9XXX_SLPOUT, 0x80,
205 ILI9XXX_DISPON, 0x80,
209 static const uint8_t
PROGMEM INITCMD_ST7796[] = {
211 ILI9XXX_SWRESET, 0x80,
212 ILI9XXX_CSCON, 1, 0xC3,
213 ILI9XXX_CSCON, 1, 0x96,
214 ILI9XXX_VMCTR1, 1, 0x1C,
215 ILI9XXX_MADCTL, 1, 0x48,
216 ILI9XXX_PIXFMT, 1, 0x55,
217 ILI9XXX_IFMODE, 1, 0x80,
218 ILI9XXX_INVCTR, 1, 0x01,
219 ILI9XXX_DFUNCTR, 3, 0x80, 0x02, 0x3B,
220 ILI9XXX_ETMOD, 1, 0xC6,
222 ILI9XXX_CSCON, 1, 0x69,
223 ILI9XXX_CSCON, 1, 0x3C,
224 ILI9XXX_SLPOUT, 0x80,
225 ILI9XXX_DISPON, 0x80,
229 static const uint8_t
PROGMEM INITCMD_S3BOX[] = {
230 0xEF, 3, 0x03, 0x80, 0x02,
231 0xCF, 3, 0x00, 0xC1, 0x30,
232 0xED, 4, 0x64, 0x03, 0x12, 0x81,
233 0xE8, 3, 0x85, 0x00, 0x78,
234 0xCB, 5, 0x39, 0x2C, 0x00, 0x34, 0x02,
237 ILI9XXX_PWCTR1 , 1, 0x23,
238 ILI9XXX_PWCTR2 , 1, 0x10,
239 ILI9XXX_VMCTR1 , 2, 0x3e, 0x28,
240 ILI9XXX_VMCTR2 , 1, 0x86,
241 ILI9XXX_MADCTL , 1, 0xC8,
242 ILI9XXX_VSCRSADD, 1, 0x00,
243 ILI9XXX_PIXFMT , 1, 0x55,
244 ILI9XXX_FRMCTR1 , 2, 0x00, 0x18,
245 ILI9XXX_DFUNCTR , 3, 0x08, 0x82, 0x27,
247 ILI9XXX_GAMMASET , 1, 0x01,
248 ILI9XXX_GMCTRP1 , 15, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08,
249 0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
251 ILI9XXX_GMCTRN1 , 15, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07,
252 0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
254 ILI9XXX_SLPOUT , 0x80,
255 ILI9XXX_DISPON , 0x80,
259 static const uint8_t
PROGMEM INITCMD_S3BOXLITE[] = {
260 0xEF, 3, 0x03, 0x80, 0x02,
261 0xCF, 3, 0x00, 0xC1, 0x30,
262 0xED, 4, 0x64, 0x03, 0x12, 0x81,
263 0xE8, 3, 0x85, 0x00, 0x78,
264 0xCB, 5, 0x39, 0x2C, 0x00, 0x34, 0x02,
267 ILI9XXX_PWCTR1 , 1, 0x23,
268 ILI9XXX_PWCTR2 , 1, 0x10,
269 ILI9XXX_VMCTR1 , 2, 0x3e, 0x28,
270 ILI9XXX_VMCTR2 , 1, 0x86,
271 ILI9XXX_MADCTL , 1, 0x40,
272 ILI9XXX_VSCRSADD, 1, 0x00,
273 ILI9XXX_PIXFMT , 1, 0x55,
274 ILI9XXX_FRMCTR1 , 2, 0x00, 0x18,
275 ILI9XXX_DFUNCTR , 3, 0x08, 0x82, 0x27,
277 ILI9XXX_GAMMASET , 1, 0x01,
278 ILI9XXX_GMCTRP1 , 14, 0xF0, 0x09, 0x0B, 0x06, 0x04, 0x15,
279 0x2F, 0x54, 0x42, 0x3C, 0x17, 0x14,
281 ILI9XXX_GMCTRN1 , 14, 0xE0, 0x09, 0x0B, 0x06, 0x04, 0x03,
282 0x2B, 0x43, 0x42, 0x3B, 0x16, 0x14,
284 ILI9XXX_SLPOUT , 0x80,
285 ILI9XXX_DISPON , 0x80,
289 static const uint8_t
PROGMEM INITCMD_ST7789V[] = {
290 ILI9XXX_SLPOUT , 0x80,
291 ILI9XXX_DISPON , 0x80,
292 ILI9XXX_MADCTL , 1, 0x08,
293 ILI9XXX_DFUNCTR, 2, 0x0A, 0x82,
294 ILI9XXX_PIXFMT , 1, 0x55,
295 ILI9XXX_FRMCTR2, 5, 0x0C, 0x0C, 0x00, 0x33, 0x33,
296 ILI9XXX_ETMOD, 1, 0x35, 0xBB, 1, 0x28,
297 ILI9XXX_PWCTR1 , 1, 0x0C,
298 ILI9XXX_PWCTR3 , 2, 0x01, 0xFF,
299 ILI9XXX_PWCTR4 , 1, 0x10,
300 ILI9XXX_PWCTR5 , 1, 0x20,
301 ILI9XXX_IFCTR , 1, 0x0F,
302 ILI9XXX_PWSET, 2, 0xA4, 0xA1,
303 ILI9XXX_GMCTRP1 , 14,
304 0xd0, 0x00, 0x02, 0x07, 0x0a,
305 0x28, 0x32, 0x44, 0x42, 0x06, 0x0e,
307 ILI9XXX_GMCTRN1 , 14,
308 0xd0, 0x00, 0x02, 0x07, 0x0a,
309 0x28, 0x31, 0x54, 0x47,
310 0x0e, 0x1c, 0x17, 0x1b,
312 ILI9XXX_DISPON , 0x80,
316 static const uint8_t
PROGMEM INITCMD_GC9A01A[] = {
335 0x90, 4, 0x08, 0x08, 0x08, 0x08,
336 ILI9XXX_PIXFMT , 1, 0x05,
337 ILI9XXX_MADCTL , 1, MADCTL_MX| MADCTL_BGR,
340 0xFF, 3, 0x60, 0x01, 0x04,
346 0xDF, 3, 0x21, 0x0c, 0x02,
347 0xF0, 6, 0x45, 0x09, 0x08, 0x08, 0x26, 0x2A,
348 0xF1, 6, 0x43, 0x70, 0x72, 0x36, 0x37, 0x6F,
349 0xF2, 6, 0x45, 0x09, 0x08, 0x08, 0x26, 0x2A,
350 0xF3, 6, 0x43, 0x70, 0x72, 0x36, 0x37, 0x6F,
355 0x62, 12, 0x18, 0x0D, 0x71, 0xED, 0x70, 0x70,
356 0x18, 0x0F, 0x71, 0xEF, 0x70, 0x70,
357 0x63, 12, 0x18, 0x11, 0x71, 0xF1, 0x70, 0x70,
358 0x18, 0x13, 0x71, 0xF3, 0x70, 0x70,
359 0x64, 7, 0x28, 0x29, 0xF1, 0x01, 0xF1, 0x00, 0x07,
360 0x66, 10, 0x3C, 0x00, 0xCD, 0x67, 0x45, 0x45, 0x10, 0x00, 0x00, 0x00,
361 0x67, 10, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x01, 0x54, 0x10, 0x32, 0x98,
362 0x74, 7, 0x10, 0x85, 0x80, 0x00, 0x00, 0x4E, 0x00,
365 ILI9XXX_SLPOUT , 0x80,
366 ILI9XXX_DISPON , 0x80,
370 static const uint8_t
PROGMEM INITCMD_ST7735[] = {
375 ILI9XXX_PIXFMT , 1, 0x05,
404 0x02, 0x1c, 0x07, 0x12,
405 0x37, 0x32, 0x29, 0x2d,
406 0x29, 0x25, 0x2B, 0x39,
407 0x00, 0x01, 0x03, 0x10,
409 0x03, 0x1d, 0x07, 0x06,
410 0x2E, 0x2C, 0x29, 0x2D,
411 0x2E, 0x2E, 0x37, 0x3F,
412 0x00, 0x00, 0x02, 0x10,
413 ILI9XXX_MADCTL , 1, 0x00,
const uint8_t ESPHOME_WEBSERVER_INDEX_HTML [] PROGMEM
Implementation of SPI Controller mode.