Skip to content

Commit a970854

Browse files
committed
mipi: Comment out DCS read commands
There is no support for read commands in lmdpdg, so whenever these appear in a command sequence it's most certainly not a real DCS command.
1 parent f0dbd76 commit a970854

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

mipi.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ def get_params(b: bytes) -> List[str]:
5656
class DCSCommand(Enum):
5757
NOP = 0x00, 0, 'mipi_dsi_dcs_nop'
5858
SOFT_RESET = 0x01, 0, 'mipi_dsi_dcs_soft_reset'
59-
GET_DISPLAY_ID = 0x04
60-
GET_RED_CHANNEL = 0x06,
61-
GET_GREEN_CHANNEL = 0x07,
62-
GET_BLUE_CHANNEL = 0x08,
63-
GET_DISPLAY_STATUS = 0x09,
64-
GET_POWER_MODE = 0x0A,
65-
GET_ADDRESS_MODE = 0x0B,
66-
GET_PIXEL_FORMAT = 0x0C,
67-
GET_DISPLAY_MODE = 0x0D,
68-
GET_SIGNAL_MODE = 0x0E,
69-
GET_DIAGNOSTIC_RESULT = 0x0F,
59+
# GET_DISPLAY_ID = 0x04
60+
# GET_RED_CHANNEL = 0x06,
61+
# GET_GREEN_CHANNEL = 0x07,
62+
# GET_BLUE_CHANNEL = 0x08,
63+
# GET_DISPLAY_STATUS = 0x09,
64+
# GET_POWER_MODE = 0x0A,
65+
# GET_ADDRESS_MODE = 0x0B,
66+
# GET_PIXEL_FORMAT = 0x0C,
67+
# GET_DISPLAY_MODE = 0x0D,
68+
# GET_SIGNAL_MODE = 0x0E,
69+
# GET_DIAGNOSTIC_RESULT = 0x0F,
7070
ENTER_SLEEP_MODE = 0x10, 0, 'mipi_dsi_dcs_enter_sleep_mode'
7171
EXIT_SLEEP_MODE = 0x11, 0, 'mipi_dsi_dcs_exit_sleep_mode'
7272
ENTER_PARTIAL_MODE = 0x12, 0,
@@ -95,13 +95,13 @@ class DCSCommand(Enum):
9595
SET_TEAR_SCANLINE = 0x44, 2, 'mipi_dsi_dcs_set_tear_scanline', _get_params_int(2, 'big')
9696
GET_SCANLINE = 0x45,
9797
SET_DISPLAY_BRIGHTNESS = 0x51, (1, 2), 'mipi_dsi_dcs_set_display_brightness', _get_params_int(2, 'little')
98-
GET_DISPLAY_BRIGHTNESS = 0x52,
98+
# GET_DISPLAY_BRIGHTNESS = 0x52,
9999
WRITE_CONTROL_DISPLAY = 0x53, 1,
100-
GET_CONTROL_DISPLAY = 0x54,
100+
# GET_CONTROL_DISPLAY = 0x54,
101101
WRITE_POWER_SAVE = 0x55, 1,
102-
GET_POWER_SAVE = 0x56,
102+
# GET_POWER_SAVE = 0x56,
103103
SET_CABC_MIN_BRIGHTNESS = 0x5E,
104-
GET_CABC_MIN_BRIGHTNESS = 0x5F,
104+
# GET_CABC_MIN_BRIGHTNESS = 0x5F,
105105
READ_DDB_START = 0xA1,
106106
READ_DDB_CONTINUE = 0xA8,
107107

0 commit comments

Comments
 (0)