class ST7701 – Display Controller#

The ST7701 class initializes the ST7701 LCD controller used by MIPI DSI panels.

Constructors#

class display.ST7701#

Creates a controller object. Pass it as the controller argument to DSIDisplay() which will invoke ST7701.init() automatically.

init(dc: display.DSIDisplay, dt: Any) None#

Initializes the display.

  • dc is the display controller object that must provide bus_write() and bus_read() methods (typically a display.DSIDisplay instance).

  • dt is the display timing/configuration argument forwarded by the display controller.

read_id() bytes#

Returns the 3-byte display id read from register 0x04.

DSI_CMD2_BKX_SEL: int#

Command 2 bank select register (0xFF).

DSI_CMD2_BK0_SEL: int#

Bank 0 select value (0x10).

DSI_CMD2_BK1_SEL: int#

Bank 1 select value (0x11).

DSI_CMD2_BKX_SEL_NONE: int#

Bank disable value (0x00).

DSI_CMD2_BK0_PVGAMCTRL: int#

Positive voltage gamma control (0xB0).

DSI_CMD2_BK0_NVGAMCTRL: int#

Negative voltage gamma control (0xB1).

DSI_CMD2_BK0_LNESET: int#

Display line setting (0xC0).

DSI_CMD2_BK0_PORCTRL: int#

Porch control (0xC1).

DSI_CMD2_BK0_INVSEL: int#

Inversion select (0xC2).

DSI_CMD2_BK1_SECTRL: int#

Setting control (0xE0).

DSI_CMD2_BK1_NRCTRL: int#

Noise reduction control (0xE1).

DSI_CMD2_BK1_SRPCTRL: int#

Source pre-charge control (0xE2).

DSI_CMD2_BK1_CCCTRL: int#

Charge control (0xE3).

DSI_CMD2_BK1_SKCTRL: int#

Skew control (0xE4).

DSI_CMD2_BK1_VRHS: int#

VRH set (0xB0).

DSI_CMD2_BK1_VCOM: int#

VCOM set (0xB1).

DSI_CMD2_BK1_VGHSS: int#

VGH set (0xB2).

DSI_CMD2_BK1_TESTCMD: int#

Test command (0xB3).

DSI_CMD2_BK1_VGLS: int#

VGL set (0xB5).

DSI_CMD2_BK1_PWCTLR1: int#

Power control 1 (0xB7).

DSI_CMD2_BK1_PWCTLR2: int#

Power control 2 (0xB8).

DSI_CMD2_BK1_DGMLUTR: int#

Digital gamma LUT (0xB9).

DSI_CMD2_BK1_SPD1: int#

Source pre-drive 1 (0xC1).

DSI_CMD2_BK1_SPD2: int#

Source pre-drive 2 (0xC2).

DSI_CMD2_BK1_MIPISET1: int#

MIPI setting 1 (0xD0).

DCS_SOFT_RESET: int#

Soft reset (0x01).

DCS_EXIT_SLEEP_MODE: int#

Exit sleep mode (0x11).

DCS_SET_DISPLAY_ON: int#

Set display on (0x29).