[−][src]Trait ssd1306::interface::DisplayInterface
A method of communicating with SSD1306
Associated Types
type Error
Interface error type
Required methods
fn send_commands(&mut self, cmd: &[u8]) -> Result<(), Self::Error>
Send a batch of up to 8 commands to display.
fn send_data(&mut self, buf: &[u8]) -> Result<(), Self::Error>
Send data to display.
Implementors
impl<I2C, CommE> DisplayInterface for I2cInterface<I2C> where
I2C: Write<Error = CommE>,
[src]
I2C: Write<Error = CommE>,
type Error = Error<CommE, ()>
fn send_commands(&mut self, cmds: &[u8]) -> Result<(), Self::Error>
[src]
fn send_data(&mut self, buf: &[u8]) -> Result<(), Self::Error>
[src]
impl<SPI, DC, CommE, PinE> DisplayInterface for SpiInterface<SPI, DC> where
SPI: Write<u8, Error = CommE>,
DC: OutputPin<Error = PinE>,
[src]
SPI: Write<u8, Error = CommE>,
DC: OutputPin<Error = PinE>,