tempe_displays.st7789.spi ========================= .. py:module:: tempe_displays.st7789.spi .. autoapi-nested-parse:: Generic support for SPI-based ST7789 screens. Classes ------- .. autoapisummary:: tempe_displays.st7789.spi.ST7789_SPI Module Contents --------------- .. py:class:: ST7789_SPI(spi: machine.SPI | None = None, cs_pin: int | machine.Pin = 17, dc_pin: int | machine.Pin = 16, size: tuple[int, int] = (320, 240), reset_pin: int | machine.Pin | None = None) Bases: :py:obj:`tempe_displays.st7789.base.ST7789` Generic support for SPI-based ST7789 screens. .. py:attribute:: spi :type: machine.SPI .. py:attribute:: cs_pin :type: machine.Pin .. py:attribute:: dc_pin :type: machine.Pin .. py:method:: send(dc: int, buf: collections.abc.Iterable[int]) -> None Send bytes to the device via SPI .. py:method:: send_iterator(dc, buf_iter: collections.abc.Iterator[int]) -> None Send iterated bytes to the device via SPI