[][src]Trait ssd1306::interface::DisplayInterface

pub trait DisplayInterface {
    fn send_commands(&mut self, cmd: &[u8]) -> Result<(), ()>;
fn send_data(&mut self, buf: &[u8]) -> Result<(), ()>; }

A method of communicating with SSD1306

Required methods

fn send_commands(&mut self, cmd: &[u8]) -> Result<(), ()>

Send a batch of up to 8 commands to display.

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

Send data to display.

Loading content...

Implementors

impl<I2C> DisplayInterface for I2cInterface<I2C> where
    I2C: Write
[src]

impl<SPI, DC> DisplayInterface for SpiInterface<SPI, DC> where
    SPI: Write<u8>,
    DC: OutputPin
[src]

Loading content...