kelas ST7701 -- Pengontrol Display

Kelas ST7701 menginisialisasi pengontrol LCD ST7701 yang digunakan oleh panel MIPI DSI.

Konstruktor

class display.ST7701

Membuat objek pengontrol. Berikan sebagai argumen controller ke DSIDisplay() yang akan memanggil ST7701.init() secara otomatis.

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

Menginisialisasi display.

  • dc adalah objek pengontrol display yang harus menyediakan metode bus_write() dan bus_read() (biasanya instance display.DSIDisplay).

  • dt adalah argumen timing/konfigurasi display yang diteruskan oleh pengontrol display.

read_id() bytes

Mengembalikan id display 3-byte yang dibaca dari register 0x04.

DSI_CMD2_BKX_SEL: int

Register pemilih bank perintah 2 (0xFF).

DSI_CMD2_BK0_SEL: int

Nilai pemilih Bank 0 (0x10).

DSI_CMD2_BK1_SEL: int

Nilai pemilih Bank 1 (0x11).

DSI_CMD2_BKX_SEL_NONE: int

Nilai nonaktif bank (0x00).

DSI_CMD2_BK0_PVGAMCTRL: int

Kontrol gamma tegangan positif (0xB0).

DSI_CMD2_BK0_NVGAMCTRL: int

Kontrol gamma tegangan negatif (0xB1).

DSI_CMD2_BK0_LNESET: int

Pengaturan baris display (0xC0).

DSI_CMD2_BK0_PORCTRL: int

Kontrol porch (0xC1).

DSI_CMD2_BK0_INVSEL: int

Pemilihan inversi (0xC2).

DSI_CMD2_BK1_SECTRL: int

Kontrol pengaturan (0xE0).

DSI_CMD2_BK1_NRCTRL: int

Kontrol pengurangan noise (0xE1).

DSI_CMD2_BK1_SRPCTRL: int

Kontrol pre-charge sumber (0xE2).

DSI_CMD2_BK1_CCCTRL: int

Kontrol charge (0xE3).

DSI_CMD2_BK1_SKCTRL: int

Kontrol skew (0xE4).

DSI_CMD2_BK1_VRHS: int

Pengaturan VRH (0xB0).

DSI_CMD2_BK1_VCOM: int

Pengaturan VCOM (0xB1).

DSI_CMD2_BK1_VGHSS: int

Pengaturan VGH (0xB2).

DSI_CMD2_BK1_TESTCMD: int

Perintah uji (0xB3).

DSI_CMD2_BK1_VGLS: int

Pengaturan VGL (0xB5).

DSI_CMD2_BK1_PWCTLR1: int

Kontrol daya 1 (0xB7).

DSI_CMD2_BK1_PWCTLR2: int

Kontrol daya 2 (0xB8).

DSI_CMD2_BK1_DGMLUTR: int

LUT gamma digital (0xB9).

DSI_CMD2_BK1_SPD1: int

Pre-drive sumber 1 (0xC1).

DSI_CMD2_BK1_SPD2: int

Pre-drive sumber 2 (0xC2).

DSI_CMD2_BK1_MIPISET1: int

Pengaturan MIPI 1 (0xD0).

DCS_SOFT_RESET: int

Reset lunak (0x01).

DCS_EXIT_SLEEP_MODE: int

Keluar dari mode tidur (0x11).

DCS_SET_DISPLAY_ON: int

Set display aktif (0x29).