[][src]Trait ssd1675::interface::DisplayInterface

pub trait DisplayInterface {
    type Error;
    fn send_command(&mut self, command: u8) -> Result<(), Self::Error>;
fn send_data(&mut self, data: &[u8]) -> Result<(), Self::Error>;
fn reset<D: DelayMs<u8>>(&mut self, delay: &mut D);
fn busy_wait(&self); }

Trait implemented by displays to provide implemenation of core functionality.

Associated Types

type Error

Loading content...

Required methods

fn send_command(&mut self, command: u8) -> Result<(), Self::Error>

Send a command to the controller.

Prefer calling execute on a Commmand over calling this directly.

fn send_data(&mut self, data: &[u8]) -> Result<(), Self::Error>

Send data for a command.

fn reset<D: DelayMs<u8>>(&mut self, delay: &mut D)

Reset the controller.

fn busy_wait(&self)

Wait for the controller to indicate it is not busy.

Loading content...

Implementors

impl<SPI, CS, BUSY, DC, RESET> DisplayInterface for Interface<SPI, CS, BUSY, DC, RESET> where
    SPI: Write<u8>,
    CS: OutputPin,
    CS::Error: Debug,
    BUSY: InputPin,
    DC: OutputPin,
    DC::Error: Debug,
    RESET: OutputPin,
    RESET::Error: Debug
[src]

type Error = SPI::Error

Loading content...