[][src]Trait sh1106::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 sh1106

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]

Loading content...