Struct eink_waveshare_rs::EPD2in9[][src]

pub struct EPD2in9<SPI, CS, BUSY, DC, RST, Delay> { /* fields omitted */ }

EPD2in9 driver

Methods

impl<SPI, CS, BUSY, DC, RST, D, E> EPD2in9<SPI, CS, BUSY, DC, RST, D> where
    SPI: Write<u8, Error = E>,
    CS: OutputPin,
    BUSY: InputPin,
    DC: OutputPin,
    RST: OutputPin,
    D: DelayUs<u16> + DelayMs<u16>, 
[src]

Uses the slower full update

Uses the quick partial refresh

Trait Implementations

impl<SPI, CS, BUSY, DC, RST, Delay, ERR> WaveshareInterface<SPI, CS, BUSY, DC, RST, Delay, ERR> for EPD2in9<SPI, CS, BUSY, DC, RST, Delay> where
    SPI: Write<u8, Error = ERR>,
    CS: OutputPin,
    BUSY: InputPin,
    DC: OutputPin,
    RST: OutputPin,
    Delay: DelayUs<u16> + DelayMs<u16>, 
[src]

Get the width of the display

Get the height of the display

Creates a new driver from a SPI peripheral, CS Pin, Busy InputPin, DC Read more

Let the device enter deep-sleep mode to save power. Read more

Abstraction of setting the delay for simpler calls Read more

Transmit a full frame to the SRAM of the DPD

Transmits partial data to the SRAM of the EPD Read more

Displays the frame data from SRAM

Loads a full image on the EPD and displays it

Loads a partial image on the EPD and displays it

Clears the frame from the buffer with the declared background color The background color can be changed with [set_background_color] Read more

Sets the backgroundcolor for various commands like WaveshareInterface::clear_frame()

Get current background color

Auto Trait Implementations

impl<SPI, CS, BUSY, DC, RST, Delay> Send for EPD2in9<SPI, CS, BUSY, DC, RST, Delay> where
    BUSY: Send,
    CS: Send,
    DC: Send,
    Delay: Send,
    RST: Send,
    SPI: Send

impl<SPI, CS, BUSY, DC, RST, Delay> Sync for EPD2in9<SPI, CS, BUSY, DC, RST, Delay> where
    BUSY: Sync,
    CS: Sync,
    DC: Sync,
    Delay: Sync,
    RST: Sync,
    SPI: Sync