[−][src]Function st7789::new_display_driver
pub fn new_display_driver<SPI, CSX, DC, RST>(
spi: SPI,
csx: CSX,
dc: DC,
rst: RST,
size_x: u16,
size_y: u16
) -> ST7789<SPIInterface<SPI, DC, CSX>, RST> where
SPI: Write<u8>,
CSX: OutputPin,
DC: OutputPin,
RST: OutputPin,
Deprecated since 0.3.1:
Please use ST7789::new, this function will be removed in v0.4
Convenience function for creating a new display driver with SPI
Arguments
spi
- an SPI interface to use for talking to the displaycsx
- the chip select pin documented in the datasheetdc
- data/clock pin switchrst
- display hard reset pinsize_x
- x axis resolution of the display in pixelssize_y
- y axis resolution of the display in pixels