Hanna
Sourcecode Batteriemanagementsystem
Doku Start
Informationen
Auflistung der Dateien
Datenstrukturen
Batman
Hanna
Documents
Eclipse
ws-bms
bms_main
ILI9341
ili9341_regs.h
gehe zur Dokumentation dieser Datei
1
45
#ifndef DRIVERS_GFX_ILI9341_ILI9341_REGS_H_INCLUDED
46
#define DRIVERS_GFX_ILI9341_ILI9341_REGS_H_INCLUDED
47
48
/* Level 1 Commands (from the display Datasheet) */
49
#define ILI9341_CMD_NOP 0x00
50
#define ILI9341_CMD_SOFTWARE_RESET 0x01
51
#define ILI9341_CMD_READ_DISP_ID 0x04
52
#define ILI9341_CMD_READ_DISP_STATUS 0x09
53
#define ILI9341_CMD_READ_DISP_MADCTRL 0x0B
54
#define ILI9341_CMD_READ_DISP_PIXEL_FORMAT 0x0C
55
#define ILI9341_CMD_READ_DISP_IMAGE_FORMAT 0x0D
56
#define ILI9341_CMD_READ_DISP_SIGNAL_MODE 0x0E
57
#define ILI9341_CMD_READ_DISP_SELF_DIAGNOSTIC 0x0F
58
#define ILI9341_CMD_ENTER_SLEEP_MODE 0x10
59
#define ILI9341_CMD_SLEEP_OUT 0x11
60
#define ILI9341_CMD_PARTIAL_MODE_ON 0x12
61
#define ILI9341_CMD_NORMAL_DISP_MODE_ON 0x13
62
#define ILI9341_CMD_DISP_INVERSION_OFF 0x20
63
#define ILI9341_CMD_DISP_INVERSION_ON 0x21
64
#define ILI9341_CMD_GAMMA_SET 0x26
65
#define ILI9341_CMD_DISPLAY_OFF 0x28
66
#define ILI9341_CMD_DISPLAY_ON 0x29
67
#define ILI9341_CMD_COLUMN_ADDRESS_SET 0x2A
68
#define ILI9341_CMD_PAGE_ADDRESS_SET 0x2B
69
#define ILI9341_CMD_MEMORY_WRITE 0x2C
70
#define ILI9341_CMD_COLOR_SET 0x2D
71
#define ILI9341_CMD_MEMORY_READ 0x2E
72
#define ILI9341_CMD_PARTIAL_AREA 0x30
73
#define ILI9341_CMD_VERT_SCROLL_DEFINITION 0x33
74
#define ILI9341_CMD_TEARING_EFFECT_LINE_OFF 0x34
75
#define ILI9341_CMD_TEARING_EFFECT_LINE_ON 0x35
76
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL 0x36
77
#define ILI9341_CMD_VERT_SCROLL_START_ADDRESS 0x37
78
#define ILI9341_CMD_IDLE_MODE_OFF 0x38
79
#define ILI9341_CMD_IDLE_MODE_ON 0x39
80
#define ILI9341_CMD_COLMOD_PIXEL_FORMAT_SET 0x3A
81
#define ILI9341_CMD_WRITE_MEMORY_CONTINUE 0x3C
82
#define ILI9341_CMD_READ_MEMORY_CONTINUE 0x3E
83
#define ILI9341_CMD_SET_TEAR_SCANLINE 0x44
84
#define ILI9341_CMD_GET_SCANLINE 0x45
85
#define ILI9341_CMD_WRITE_DISPLAY_BRIGHTNESS 0x51
86
#define ILI9341_CMD_READ_DISPLAY_BRIGHTNESS 0x52
87
#define ILI9341_CMD_WRITE_CTRL_DISPLAY 0x53
88
#define ILI9341_CMD_READ_CTRL_DISPLAY 0x54
89
#define ILI9341_CMD_WRITE_CONTENT_ADAPT_BRIGHTNESS 0x55
90
#define ILI9341_CMD_READ_CONTENT_ADAPT_BRIGHTNESS 0x56
91
#define ILI9341_CMD_WRITE_MIN_CAB_LEVEL 0x5E
92
#define ILI9341_CMD_READ_MIN_CAB_LEVEL 0x5F
93
#define ILI9341_CMD_READ_ID1 0xDA
94
#define ILI9341_CMD_READ_ID2 0xDB
95
#define ILI9341_CMD_READ_ID3 0xDC
96
97
/* Level 2 Commands (from the display Datasheet) */
98
#define ILI9341_CMD_RGB_SIGNAL_CONTROL 0xB0
99
#define ILI9341_CMD_FRAME_RATE_CONTROL_NORMAL 0xB1
100
#define ILI9341_CMD_FRAME_RATE_CONTROL_IDLE_8COLOR 0xB2
101
#define ILI9341_CMD_FRAME_RATE_CONTROL_PARTIAL 0xB3
102
#define ILI9341_CMD_DISPLAY_INVERSION_CONTROL 0xB4
103
#define ILI9341_CMD_BLANKING_PORCH_CONTROL 0xB5
104
#define ILI9341_CMD_DISPLAY_FUNCTION_CONTROL 0xB6
105
#define ILI9341_CMD_ENTRY_MODE_SET 0xB7
106
#define ILI9341_CMD_BACKLIGHT_CONTROL_1 0xB8
107
#define ILI9341_CMD_BACKLIGHT_CONTROL_2 0xB9
108
#define ILI9341_CMD_BACKLIGHT_CONTROL_3 0xBA
109
#define ILI9341_CMD_BACKLIGHT_CONTROL_4 0xBB
110
#define ILI9341_CMD_BACKLIGHT_CONTROL_5 0xBC
111
#define ILI9341_CMD_BACKLIGHT_CONTROL_6 0xBD
112
#define ILI9341_CMD_BACKLIGHT_CONTROL_7 0xBE
113
#define ILI9341_CMD_BACKLIGHT_CONTROL_8 0xBF
114
#define ILI9341_CMD_POWER_CONTROL_1 0xC0
115
#define ILI9341_CMD_POWER_CONTROL_2 0xC1
116
#define ILI9341_CMD_VCOM_CONTROL_1 0xC5
117
#define ILI9341_CMD_VCOM_CONTROL_2 0xC7
118
#define ILI9341_CMD_POWER_ON_SEQ_CONTROL 0xCB
119
#define ILI9341_CMD_POWER_CONTROL_A 0xCD
120
#define ILI9341_CMD_POWER_CONTROL_B 0xCF
121
#define ILI9341_CMD_NVMEM_WRITE 0xD0
122
#define ILI9341_CMD_NVMEM_PROTECTION_KEY 0xD1
123
#define ILI9341_CMD_NVMEM_STATUS_READ 0xD2
124
#define ILI9341_CMD_READ_ID4 0xD3
125
#define ILI9341_CMD_POSITIVE_GAMMA_CORRECTION 0xE0
126
#define ILI9341_CMD_NEGATIVE_GAMMA_CORRECTION 0xE1
127
#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_1 0xE2
128
#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_2 0xE3
129
#define ILI9341_CMD_DRIVER_TIMING_CONTROL_A 0xE8
130
#define ILI9341_CMD_DRIVER_TIMING_CONTROL_B 0xEA
131
#define ILI9341_CMD_ENABLE_3_GAMMA_CONTROL 0xF2
132
#define ILI9341_CMD_INTERFACE_CONTROL 0xF6
133
#define ILI9341_CMD_PUMP_RATIO_CONTROL 0xF7
134
135
#endif
/* DRIVERS_GFX_ILI9341_ILI9341_REGS_H_INCLUDED */