[−][src]Struct epd_waveshare::epd2in9bc::EPD2in9bc
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]
SPI: Write<u8>,
CS: OutputPin,
BUSY: InputPin,
DC: OutputPin,
RST: OutputPin,
pub fn set_border_color(
&mut self,
spi: &mut SPI,
color: TriColor
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
color: TriColor
) -> Result<(), SPI::Error>
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]
SPI: Write<u8>,
CS: OutputPin,
BUSY: InputPin,
DC: OutputPin,
RST: OutputPin,
fn new<DELAY: DelayMs<u8>>(
spi: &mut SPI,
cs: CS,
busy: BUSY,
dc: DC,
rst: RST,
delay: &mut DELAY
) -> Result<Self, SPI::Error>
[src]
spi: &mut SPI,
cs: CS,
busy: BUSY,
dc: DC,
rst: RST,
delay: &mut DELAY
) -> Result<Self, SPI::Error>
fn sleep(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>
[src]
fn wake_up<DELAY: DelayMs<u8>>(
&mut self,
spi: &mut SPI,
delay: &mut DELAY
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
delay: &mut DELAY
) -> Result<(), SPI::Error>
fn set_background_color(&mut self, color: Color)
[src]
fn background_color(&self) -> &Color
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn update_frame(
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
fn update_partial_frame(
&mut self,
spi: &mut SPI,
buffer: &[u8],
x: u32,
y: u32,
width: u32,
height: u32
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
buffer: &[u8],
x: u32,
y: u32,
width: u32,
height: u32
) -> Result<(), SPI::Error>
fn display_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>
[src]
fn update_and_display_frame(
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
fn clear_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>
[src]
fn set_lut(
&mut self,
_spi: &mut SPI,
_refresh_rate: Option<RefreshLUT>
) -> Result<(), SPI::Error>
[src]
&mut self,
_spi: &mut SPI,
_refresh_rate: Option<RefreshLUT>
) -> Result<(), SPI::Error>
fn is_busy(&self) -> bool
[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]
SPI: Write<u8>,
CS: OutputPin,
BUSY: InputPin,
DC: OutputPin,
RST: OutputPin,
fn update_color_frame(
&mut self,
spi: &mut SPI,
black: &[u8],
chromatic: &[u8]
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
black: &[u8],
chromatic: &[u8]
) -> Result<(), SPI::Error>
fn update_achromatic_frame(
&mut self,
spi: &mut SPI,
black: &[u8]
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
black: &[u8]
) -> Result<(), SPI::Error>
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]
&mut self,
spi: &mut SPI,
chromatic: &[u8]
) -> Result<(), SPI::Error>
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,
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,
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,
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,
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,
BUSY: UnwindSafe,
CS: UnwindSafe,
DC: UnwindSafe,
RST: UnwindSafe,
SPI: 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>,