[−][src]Struct epd_waveshare_uart::epd4in3::EPD4in3
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]
SERIAL: Write<u8, Error = F> + Read<u8, Error = E>,
WAKE: OutputPin<Error = G>,
RST: OutputPin<Error = G>,
fn new<DELAY: DelayMs<u16>>(
serial: &mut SERIAL,
wake: WAKE,
rst: RST,
delay: &mut DELAY
) -> Result<Self, Error<E, F, G>>
[src]
serial: &mut SERIAL,
wake: WAKE,
rst: RST,
delay: &mut DELAY
) -> Result<Self, Error<E, F, G>>
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();
fn wake_up<DELAY: DelayMs<u16>>(
&mut self,
serial: &mut SERIAL,
delay: &mut DELAY
) -> Result<(), Error<E, F, G>>
[src]
&mut self,
serial: &mut SERIAL,
delay: &mut DELAY
) -> Result<(), Error<E, F, G>>
fn sleep(&mut self, serial: &mut SERIAL) -> Result<(), Error<E, F, G>>
[src]
fn update_frame<DELAY: DelayMs<u16>>(
&mut self,
serial: &mut SERIAL,
buffer: &[EpdColor],
_delay: &mut DELAY
) -> Result<(), Error<E, F, G>>
[src]
&mut self,
serial: &mut SERIAL,
buffer: &[EpdColor],
_delay: &mut DELAY
) -> Result<(), Error<E, F, G>>
fn display_frame(&mut self, serial: &mut SERIAL) -> Result<(), Error<E, F, G>>
[src]
fn clear_frame(&mut self, serial: &mut SERIAL) -> Result<(), Error<E, F, G>>
[src]
fn set_background_color(&mut self, color: EpdColor)
[src]
fn set_foreground_color(&mut self, color: EpdColor)
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
Auto Trait Implementations
impl<SERIAL, WAKE, RST> RefUnwindSafe for EPD4in3<SERIAL, WAKE, RST> where
RST: RefUnwindSafe,
SERIAL: RefUnwindSafe,
WAKE: RefUnwindSafe,
RST: RefUnwindSafe,
SERIAL: RefUnwindSafe,
WAKE: RefUnwindSafe,
impl<SERIAL, WAKE, RST> Send for EPD4in3<SERIAL, WAKE, RST> where
RST: Send,
SERIAL: Send,
WAKE: Send,
RST: Send,
SERIAL: Send,
WAKE: Send,
impl<SERIAL, WAKE, RST> Sync for EPD4in3<SERIAL, WAKE, RST> where
RST: Sync,
SERIAL: Sync,
WAKE: Sync,
RST: Sync,
SERIAL: Sync,
WAKE: Sync,
impl<SERIAL, WAKE, RST> Unpin for EPD4in3<SERIAL, WAKE, RST> where
RST: Unpin,
SERIAL: Unpin,
WAKE: Unpin,
RST: Unpin,
SERIAL: Unpin,
WAKE: Unpin,
impl<SERIAL, WAKE, RST> UnwindSafe for EPD4in3<SERIAL, WAKE, RST> where
RST: UnwindSafe,
SERIAL: UnwindSafe,
WAKE: UnwindSafe,
RST: UnwindSafe,
SERIAL: UnwindSafe,
WAKE: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,