class ST7701 – Display-controller

De ST7701-klasse initialiseert de ST7701 LCD-controller die door MIPI DSI-panelen wordt gebruikt.

Constructors

class display.ST7701

Maakt een controllerobject. Geef het door als het controller-argument aan DSIDisplay(), dat automatisch ST7701.init() zal aanroepen.

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

Initialiseert de display.

  • dc is het display-controllerobject dat de methoden bus_write() en bus_read() moet aanbieden (doorgaans een display.DSIDisplay-instantie).

  • dt is het display-timing-/configuratieargument dat door de display-controller wordt doorgegeven.

read_id() bytes

Geeft de 3-byte display-id terug die uit register 0x04 is gelezen.

DSI_CMD2_BKX_SEL: int

Commando 2 bank-selectregister (0xFF).

DSI_CMD2_BK0_SEL: int

Bank 0 selectiewaarde (0x10).

DSI_CMD2_BK1_SEL: int

Bank 1 selectiewaarde (0x11).

DSI_CMD2_BKX_SEL_NONE: int

Bank-uitschakelwaarde (0x00).

DSI_CMD2_BK0_PVGAMCTRL: int

Positieve-spanning gammaregeling (0xB0).

DSI_CMD2_BK0_NVGAMCTRL: int

Negatieve-spanning gammaregeling (0xB1).

DSI_CMD2_BK0_LNESET: int

Display-lijninstelling (0xC0).

DSI_CMD2_BK0_PORCTRL: int

Porch-regeling (0xC1).

DSI_CMD2_BK0_INVSEL: int

Inversieselectie (0xC2).

DSI_CMD2_BK1_SECTRL: int

Instellingsregeling (0xE0).

DSI_CMD2_BK1_NRCTRL: int

Ruisonderdrukkingsregeling (0xE1).

DSI_CMD2_BK1_SRPCTRL: int

Source-voorladingsregeling (0xE2).

DSI_CMD2_BK1_CCCTRL: int

Laadregeling (0xE3).

DSI_CMD2_BK1_SKCTRL: int

Skew-regeling (0xE4).

DSI_CMD2_BK1_VRHS: int

VRH-instelling (0xB0).

DSI_CMD2_BK1_VCOM: int

VCOM-instelling (0xB1).

DSI_CMD2_BK1_VGHSS: int

VGH-instelling (0xB2).

DSI_CMD2_BK1_TESTCMD: int

Testcommando (0xB3).

DSI_CMD2_BK1_VGLS: int

VGL-instelling (0xB5).

DSI_CMD2_BK1_PWCTLR1: int

Voedingsregeling 1 (0xB7).

DSI_CMD2_BK1_PWCTLR2: int

Voedingsregeling 2 (0xB8).

DSI_CMD2_BK1_DGMLUTR: int

Digitale 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-instelling 1 (0xD0).

DCS_SOFT_RESET: int

Software-reset (0x01).

DCS_EXIT_SLEEP_MODE: int

Slaapmodus verlaten (0x11).

DCS_SET_DISPLAY_ON: int

Display aanzetten (0x29).