gc9a01-rs 0.3.0

SPI 4-wire driver for GC9A01 display controller
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! SPI Display Interface

use display_interface_spi::SPIInterface;

/// SPI Interfaces for the screen
#[derive(Debug, Copy, Clone)]
pub struct SPIDisplayInterface(());

impl SPIDisplayInterface {
    #[allow(clippy::new_ret_no_self)]
    pub fn new<SPI, DC>(spi: SPI, dc: DC) -> SPIInterface<SPI, DC>
    where
        SPI: embedded_hal::spi::SpiDevice,
        DC: embedded_hal::digital::OutputPin,
    {
        SPIInterface::new(spi, dc)
    }
}