Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
ili9341_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Koen Zandberg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
21
#ifndef ILI9341_INTERNAL_H
22
#define ILI9341_INTERNAL_H
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
34
#define ILI9341_CMD_SWRESET 0x01
35
#define ILI9341_CMD_RDDIDIF 0x04
36
#define ILI9341_CMD_SPLIN 0x10
37
#define ILI9341_CMD_SLPOUT 0x11
38
#define ILI9341_CMD_DINVOFF 0x20
39
#define ILI9341_CMD_DINVON 0x21
41
#define ILI9341_CMD_GAMSET 0x26
42
#define ILI9341_CMD_DISPOFF 0x28
43
#define ILI9341_CMD_DISPON 0x29
44
#define ILI9341_CMD_CASET 0x2A
45
#define ILI9341_CMD_PASET 0x2b
46
#define ILI9341_CMD_RAMWR 0x2c
47
#define ILI9341_CMD_RAMRD 0x2e
48
#define ILI9341_CMD_MADCTL 0x36
49
#define ILI9341_CMD_IDMOFF 0x38
50
#define ILI9341_CMD_IDMON 0x39
51
#define ILI9341_CMD_PIXSET 0x3A
52
#define ILI9341_CMD_WRDISBV 0x51
53
#define ILI9341_CMD_WRCTRLD 0x53
54
#define ILI9341_CMD_RDCTRLD 0x54
55
#define ILI9341_CMD_FRAMECTL1 0xb1
56
#define ILI9341_CMD_FRAMECTL2 0xb2
57
#define ILI9341_CMD_FRAMECTL3 0xb3
58
#define ILI9341_CMD_DFUNC 0xb6
59
#define ILI9341_CMD_PWCTRL1 0xc0
60
#define ILI9341_CMD_PWCTRL2 0xc1
61
#define ILI9341_CMD_VMCTRL1 0xc5
62
#define ILI9341_CMD_VMCTRL2 0xc7
63
#define ILI9341_CMD_PGAMCTRL 0xe0
64
#define ILI9341_CMD_NGAMCTRL 0xe1
65
#define ILI9341_CMD_IFCTL 0xf6
72
#define ILI9341_MADCTL_MY 0x80
73
#define ILI9341_MADCTL_MX 0x40
74
#define ILI9341_MADCTL_MV 0x20
75
#define ILI9341_MADCTL_ML 0x10
76
#define ILI9341_MADCTL_BGR 0x08
77
#define ILI9341_MADCTL_MH 0x04
84
#define ILI9341_MADCTL_VERT ILI9341_MADCTL_MX
85
#define ILI9341_MADCTL_VERT_FLIP ILI9341_MADCTL_MY
86
#define ILI9341_MADCTL_HORZ ILI9341_MADCTL_MV
87
#define ILI9341_MADCTL_HORZ_FLIP ILI9341_MADCTL_MV | \
88
ILI9341_MADCTL_MY | \
89
ILI9341_MADCTL_MX
92
#define ILI9341_PIXSET_16BIT 0x55
93
#define ILI9341_PIXSET_18BIT 0x66
95
#ifdef __cplusplus
96
}
97
#endif
98
99
#endif
/* ILI9341_INTERNAL_H */
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17