tempe_displays.st7789.spi#

Generic support for SPI-based ST7789 screens.

Classes#

ST7789_SPI

Generic support for SPI-based ST7789 screens.

Module Contents#

class ST7789_SPI(
spi: SPI | None = None,
cs_pin: int | Pin = 17,
dc_pin: int | Pin = 16,
size: tuple[int, int] = (320, 240),
reset_pin: int | Pin | None = None,
)#

Bases: tempe_displays.st7789.base.ST7789

Generic support for SPI-based ST7789 screens.

spi: SPI#
cs_pin: Pin#
dc_pin: Pin#
send(dc: int, buf: Iterable[int]) None#

Send bytes to the device via SPI

send_iterator(
dc,
buf_iter: Iterator[int],
) None#

Send iterated bytes to the device via SPI