WaveshareThreeColorDisplay

Trait WaveshareThreeColorDisplay 

Source
pub trait WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY>: WaveshareDisplay<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,
{ // Required methods fn update_color_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, black: &[u8], chromatic: &[u8], ) -> Result<(), SPI::Error>; fn update_achromatic_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, black: &[u8], ) -> Result<(), SPI::Error>; fn update_chromatic_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, chromatic: &[u8], ) -> Result<(), SPI::Error>; }
Expand description

Functions to interact with three color panels

Required Methods§

Source

fn update_color_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, black: &[u8], chromatic: &[u8], ) -> Result<(), SPI::Error>

Transmit data to the SRAM of the EPD

Updates both the black and the secondary color layers

Source

fn update_achromatic_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, black: &[u8], ) -> Result<(), SPI::Error>

Update only the black/white data of the display.

This must be finished by calling update_chromatic_frame.

Source

fn update_chromatic_frame( &mut self, spi: &mut SPI, delay: &mut DELAY, chromatic: &[u8], ) -> Result<(), SPI::Error>

Update only the chromatic data of the display.

This should be preceded by a call to update_achromatic_frame. This data takes precedence over the black/white data.

Implementors§

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd1in54b<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd1in54c<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd2in7b<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd2in9bc<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd2in13bc<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd2in66b<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd5in83<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,

Source§

impl<SPI, BUSY, DC, RST, DELAY> WaveshareThreeColorDisplay<SPI, BUSY, DC, RST, DELAY> for Epd7in5<SPI, BUSY, DC, RST, DELAY>
where SPI: SpiDevice, BUSY: InputPin, DC: OutputPin, RST: OutputPin, DELAY: DelayNs,