[][src]Struct epd_waveshare_uart::epd4in3::EPD4in3

pub struct EPD4in3<SERIAL, WAKE, RST> { /* fields omitted */ }

EPD4in3 driver

Trait Implementations

impl<E, F, G, SERIAL, WAKE, RST> WaveshareDisplay<E, F, G, SERIAL, WAKE, RST> for EPD4in3<SERIAL, WAKE, RST> where
    SERIAL: Write<u8, Error = F> + Read<u8, Error = E>,
    WAKE: OutputPin<Error = G>,
    RST: OutputPin<Error = G>, 
[src]

fn new<DELAY: DelayMs<u16>>(
    serial: &mut SERIAL,
    wake: WAKE,
    rst: RST,
    delay: &mut DELAY
) -> Result<Self, Error<E, F, G>>
[src]

Creates a new driver from a SERIAL peripheral, WAKE Pin, RST Pin

This already initialises the device. That means init() isn't needed directly afterwards

Example

This example is not tested
//buffer = some image data;

let mut epd4in3 = EPD4in3::new(serial, wake, rst, delay);

epd4in3.display_and_transfer_frame(buffer, None);

epd4in3.sleep();

Auto Trait Implementations

impl<SERIAL, WAKE, RST> RefUnwindSafe for EPD4in3<SERIAL, WAKE, RST> where
    RST: RefUnwindSafe,
    SERIAL: RefUnwindSafe,
    WAKE: RefUnwindSafe

impl<SERIAL, WAKE, RST> Send for EPD4in3<SERIAL, WAKE, RST> where
    RST: Send,
    SERIAL: Send,
    WAKE: Send

impl<SERIAL, WAKE, RST> Sync for EPD4in3<SERIAL, WAKE, RST> where
    RST: Sync,
    SERIAL: Sync,
    WAKE: Sync

impl<SERIAL, WAKE, RST> Unpin for EPD4in3<SERIAL, WAKE, RST> where
    RST: Unpin,
    SERIAL: Unpin,
    WAKE: Unpin

impl<SERIAL, WAKE, RST> UnwindSafe for EPD4in3<SERIAL, WAKE, RST> where
    RST: UnwindSafe,
    SERIAL: UnwindSafe,
    WAKE: 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.