VSF Documented
esp_lcd_panel_commands.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 ****************************************************************************/
16
17/*
18 * Clean-room re-implementation of ESP-IDF public header
19 * "esp_lcd_panel_commands.h" -- Standard MIPI DCS command macros.
20 */
21
22#ifndef __VSF_ESPIDF_ESP_LCD_PANEL_COMMANDS_H__
23#define __VSF_ESPIDF_ESP_LCD_PANEL_COMMANDS_H__
24
25#define LCD_CMD_NOP 0x00
26#define LCD_CMD_SWRESET 0x01
27#define LCD_CMD_RDDID 0x04
28#define LCD_CMD_RDDST 0x09
29#define LCD_CMD_RDDPM 0x0A
30#define LCD_CMD_RDD_MADCTL 0x0B
31#define LCD_CMD_RDD_COLMOD 0x0C
32#define LCD_CMD_RDDIM 0x0D
33#define LCD_CMD_RDDSM 0x0E
34#define LCD_CMD_RDDSR 0x0F
35#define LCD_CMD_SLPIN 0x10
36#define LCD_CMD_SLPOUT 0x11
37#define LCD_CMD_PTLON 0x12
38#define LCD_CMD_NORON 0x13
39#define LCD_CMD_INVOFF 0x20
40#define LCD_CMD_INVON 0x21
41#define LCD_CMD_GAMSET 0x26
42#define LCD_CMD_DISPOFF 0x28
43#define LCD_CMD_DISPON 0x29
44#define LCD_CMD_CASET 0x2A
45#define LCD_CMD_RASET 0x2B
46#define LCD_CMD_RAMWR 0x2C
47#define LCD_CMD_RAMRD 0x2E
48#define LCD_CMD_PTLAR 0x30
49#define LCD_CMD_VSCRDEF 0x33
50#define LCD_CMD_TEOFF 0x34
51#define LCD_CMD_TEON 0x35
52#define LCD_CMD_MADCTL 0x36
53#define LCD_CMD_VSCSAD 0x37
54#define LCD_CMD_IDMOFF 0x38
55#define LCD_CMD_IDMON 0x39
56#define LCD_CMD_COLMOD 0x3A
57#define LCD_CMD_RAMWRC 0x3C
58#define LCD_CMD_RAMRDC 0x3E
59#define LCD_CMD_STE 0x44
60#define LCD_CMD_GDCAN 0x45
61#define LCD_CMD_WRDISBV 0x51
62#define LCD_CMD_RDDISBV 0x52
63
64#define LCD_CMD_MH_BIT (1 << 2)
65#define LCD_CMD_BGR_BIT (1 << 3)
66#define LCD_CMD_ML_BIT (1 << 4)
67#define LCD_CMD_MV_BIT (1 << 5)
68#define LCD_CMD_MX_BIT (1 << 6)
69#define LCD_CMD_MY_BIT (1 << 7)
70
71#endif /* __VSF_ESPIDF_ESP_LCD_PANEL_COMMANDS_H__ */
Generated from commit: vsfteam/vsf@c3767bf