gc9a01/spi.rs
1//! SPI Display Interface
2
3use display_interface_spi::SPIInterface;
4
5/// SPI Interfaces for the screen
6#[derive(Debug, Copy, Clone)]
7pub struct SPIDisplayInterface(());
8
9impl SPIDisplayInterface {
10 #[allow(clippy::new_ret_no_self)]
11 pub fn new<SPI, DC>(spi: SPI, dc: DC) -> SPIInterface<SPI, DC>
12 where
13 SPI: embedded_hal::spi::SpiDevice,
14 DC: embedded_hal::digital::OutputPin,
15 {
16 SPIInterface::new(spi, dc)
17 }
18}