Trait ssd1306::prelude::WriteOnlyDataCommand [−][src]
pub trait WriteOnlyDataCommand { pub fn send_commands(
&mut self,
cmd: DataFormat<'_>
) -> Result<(), DisplayError>; pub fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>; }
This trait implements a write-only interface for a display which has separate data and command modes. It is the responsibility of implementations to activate the correct mode in their implementation when corresponding method is called.
Required methods
pub fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>
[src]
Send a batch of commands to display
pub fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
[src]
Send pixel data to display
Implementors
impl<I2C> WriteOnlyDataCommand for I2CInterface<I2C> where
I2C: Write,
[src]
I2C: Write,
pub fn send_commands(
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
[src]
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
pub fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
[src]
impl<SPI, DC> WriteOnlyDataCommand for SPIInterfaceNoCS<SPI, DC> where
SPI: Write<u8>,
DC: OutputPin,
[src]
SPI: Write<u8>,
DC: OutputPin,
pub fn send_commands(
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
[src]
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
pub fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
[src]
impl<SPI, DC, CS> WriteOnlyDataCommand for SPIInterface<SPI, DC, CS> where
SPI: Write<u8>,
DC: OutputPin,
CS: OutputPin,
[src]
SPI: Write<u8>,
DC: OutputPin,
CS: OutputPin,
pub fn send_commands(
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
[src]
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>