Trait ssd1306::interface::DisplayInterface
[−]
[src]
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.
Implementors
impl<I2C> DisplayInterface for I2cInterface<I2C> where
I2C: Write,impl<SPI, DC> DisplayInterface for SpiInterface<SPI, DC> where
SPI: Write<u8>,
DC: OutputPin,