tempe_displays.st7789.base
Base Display class for ST7789 screens.
Module Contents
-
COLMOD_65K
-
COLMOD_262K
-
COLMOD_12bit
-
COLMOD_16bit
-
COLMOD_18bit
-
COLMOD_16M
-
MADCTL_MY
-
MADCTL_MX
-
MADCTL_MV
-
MADCTL_ML
-
MADCTL_BGR
-
MADCTL_MH
-
MADCTL_RGB
-
class ST7789(
- size: tuple[int, int],
- reset_pin: machine.Pin | int | None = None,
)
Base class for ST7789-based displays
-
reset_pin: machine.Pin
-
send(dc: int, buf: collections.abc.Iterable[int]) → None
Send to the display.
-
send_iterator(
- dc,
- buf_iter: collections.abc.Iterator[int],
) → None
Send to the display.
-
command(command: int) → None
Send a command to the display.
-
data(data: collections.abc.Iterable[int]) → None
Send data to the display.
-
async reset() → None
Perform a hard reset of the screen, if available.
-
async soft_reset() → None
Perform a soft reset of the screen.
-
async sleep_in() → None
Enter minimum power consumption mode.
-
async sleep_out() → None
Exit minimum power consumption mode.
-
async partial_on() → None
Enter partial mode.
-
async normal_on() → None
Exit partial mode.
-
async inverse_off() → None
Exit display inversion mode.
-
async inverse_on() → None
Enter display inversion mode.
-
async display_on() → None
Turn the display on.
-
async display_off() → None
Turn the display off.
-
set_column_address(start: int, end: int) → None
Set the column range for writing.
-
set_row_address(start: int, end: int) → None
Set the row range for writing.
-
write_to_memory(buf: collections.abc.Iterable[int]) → None
Write data to memory.
-
partial_area(start: int, end: int) → None
Define partial mode’s area.
-
vertical_scroll_area(
- top: int,
- height: int,
- bottom: int,
) → None
Define vertical scroll area.
-
tearing_effect_off() → None
Turn tearing effect line off.
-
tearing_effect_on(horizontal_blanking: bool = False) → None
Turn tearing effect line on.
-
memory_data_access_control(parameter: int) → None
Set memory data access parameters.
-
vertical_scroll_start_address(start: int) → None
Set the start address of the vertical scroll area.
-
idle_mode_off() → None
Turn idle mode off.
-
idle_mode_on() → None
Turn idle mode on.
-
set_color_mode(parameter: int) → None
Set the color mode.
-
write_to_memory_continue(buf: int) → None
Continue writing data to memory from last pixel location.
-
set_tear_scanline(start: int) → None
Set the tear scanline start.
-
write_display_brightness(parameter: int) → None
-
write_ctrl_display(parameter: int) → None
-
write_adaptive_enhancement(parameter: int) → None
-
write_adaptive_minimum_brightness(parameter: int) → None
-
set_ram_control(parameter_1: int, parameter_2: int) → None
-
set_rgb_control(
- parameter_1: int,
- parameter_2: int,
- parameter_3: int,
) → None
-
set_porch_control(
- parameter_1: int,
- parameter_2: int,
- parameter_3: int,
- parameter_4: int,
- parameter_5: int,
) → None
-
set_lcm_control(parameter_1: int) → None
-
set_vdv_vrh_enable(parameter_1: int) → None
-
set_vrh(parameter_1: int) → None
-
set_vdv(parameter_1: int) → None
-
set_frame_control_1(
- parameter_1: int,
- parameter_2: int,
- parameter_3: int,
) → None
-
set_frame_rate_control(parameter_1: int) → None
-
set_power_control_1(
- parameter_1: int,
- parameter_2: int,
) → None
-
set_gate_control(parameter_1: int) → None
-
set_vcom(parameter_1: int) → None
-
set_gate_adjustment(
- parameter_1: int,
- parameter_2: int,
- parameter_3: int,
- parameter_4: int,
) → None
-
set_positive_gamma(
- curve: collections.abc.Iterable[int],
) → None
-
set_negative_gamma(
- curve: collections.abc.Iterable[int],
) → None
-
async sleep(value: bool) → None
-
async inversion(value: bool) → None
-
window(x: int, y: int, w: int, h: int) → None
-
clear() → None
-
fill(
- x: int,
- y: int,
- w: int,
- h: int,
- color=b'\xff\xff',
) → None
-
async init(**kwargs: Any) → None
-
blit(
- buf: collections.abc.Sequence[int],
- x: int,
- y: int,
- w: int,
- h: int,
- stride: int | None = None,
) → None