[][src]Struct epd_waveshare::epd2in9bc::EPD2in9bc

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

EPD2in9bc driver

Methods

impl<SPI, CS, BUSY, DC, RST> EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    SPI: Write<u8>,
    CS: OutputPin,
    BUSY: InputPin,
    DC: OutputPin,
    RST: OutputPin
[src]

pub fn set_border_color(
    &mut self,
    spi: &mut SPI,
    color: TriColor
) -> Result<(), SPI::Error>
[src]

Set the outer border of the display to the chosen color.

Trait Implementations

impl<SPI, CS, BUSY, DC, RST> WaveshareDisplay<SPI, CS, BUSY, DC, RST> for EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    SPI: Write<u8>,
    CS: OutputPin,
    BUSY: InputPin,
    DC: OutputPin,
    RST: OutputPin
[src]

impl<SPI, CS, BUSY, DC, RST> WaveshareThreeColorDisplay<SPI, CS, BUSY, DC, RST> for EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    SPI: Write<u8>,
    CS: OutputPin,
    BUSY: InputPin,
    DC: OutputPin,
    RST: OutputPin
[src]

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

Update only the black/white data of the display.

Finish by calling update_chromatic_frame.

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

Update only chromatic data of the display.

This data takes precedence over the black/white data.

Auto Trait Implementations

impl<SPI, CS, BUSY, DC, RST> RefUnwindSafe for EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    BUSY: RefUnwindSafe,
    CS: RefUnwindSafe,
    DC: RefUnwindSafe,
    RST: RefUnwindSafe,
    SPI: RefUnwindSafe

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

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

impl<SPI, CS, BUSY, DC, RST> Unpin for EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    BUSY: Unpin,
    CS: Unpin,
    DC: Unpin,
    RST: Unpin,
    SPI: Unpin

impl<SPI, CS, BUSY, DC, RST> UnwindSafe for EPD2in9bc<SPI, CS, BUSY, DC, RST> where
    BUSY: UnwindSafe,
    CS: UnwindSafe,
    DC: UnwindSafe,
    RST: UnwindSafe,
    SPI: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.