pub trait ControllerInterface {
type Error;
// Required methods
fn send_command(&mut self, cmd: u8) -> Result<(), Self::Error>;
fn send_command_with_data(
&mut self,
cmd: u8,
data: &[u8],
) -> Result<(), Self::Error>;
fn send_pixels(&mut self, pixels: &[u8]) -> Result<(), Self::Error>;
}
Expand description
Trait to implement the SH8601 controller communication interface (QSPI, SPI, etc.).
Required Associated Types§
Required Methods§
Sourcefn send_command(&mut self, cmd: u8) -> Result<(), Self::Error>
fn send_command(&mut self, cmd: u8) -> Result<(), Self::Error>
Sends a command byte to the display.