class ST7701 – Display-Controller#

Die Klasse ST7701 initialisiert den ST7701-LCD-Controller, der von MIPI-DSI-Panels verwendet wird.

Konstruktoren#

class display.ST7701#

Erstellt ein Controller-Objekt. Übergeben Sie es als Argument controller an DSIDisplay(), welches ST7701.init() automatisch aufruft.

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

Initialisiert das Display.

  • dc ist das Display-Controller-Objekt, das die Methoden bus_write() und bus_read() bereitstellen muss (typischerweise eine display.DSIDisplay-Instanz).

  • dt ist das Argument für Display-Timing/-Konfiguration, das vom Display-Controller weitergeleitet wird.

read_id() bytes#

Gibt die 3-Byte-Display-ID zurück, die aus dem Register 0x04 gelesen wird.

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).