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]
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>,
pub fn set_lut(&mut self) -> Result<(), E>
[src]
pub fn set_lut(&mut self) -> Result<(), E>
Uses the slower full update
pub fn set_lut_quick(&mut self) -> Result<(), E>
[src]
pub fn set_lut_quick(&mut self) -> Result<(), E>
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]
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>,
fn get_width(&self) -> u16
[src]
fn get_width(&self) -> u16
Get the width of the display
fn get_height(&self) -> u16
[src]
fn get_height(&self) -> u16
Get the height of the display
fn new(
spi: SPI,
cs: CS,
busy: BUSY,
dc: DC,
rst: RST,
delay: Delay
) -> Result<Self, ERR>
[src]
fn new(
spi: SPI,
cs: CS,
busy: BUSY,
dc: DC,
rst: RST,
delay: Delay
) -> Result<Self, ERR>
Creates a new driver from a SPI peripheral, CS Pin, Busy InputPin, DC Read more
fn sleep(&mut self) -> Result<(), ERR>
[src]
fn sleep(&mut self) -> Result<(), ERR>
Let the device enter deep-sleep mode to save power. Read more
fn wake_up(&mut self) -> Result<(), ERR>
[src]
fn wake_up(&mut self) -> Result<(), ERR>
fn delay_ms(&mut self, delay: u16)
[src]
fn delay_ms(&mut self, delay: u16)
Abstraction of setting the delay for simpler calls Read more
fn update_frame(&mut self, buffer: &[u8]) -> Result<(), ERR>
[src]
fn update_frame(&mut self, buffer: &[u8]) -> Result<(), ERR>
Transmit a full frame to the SRAM of the DPD
fn update_partial_frame(
&mut self,
buffer: &[u8],
x: u16,
y: u16,
width: u16,
height: u16
) -> Result<(), ERR>
[src]
fn update_partial_frame(
&mut self,
buffer: &[u8],
x: u16,
y: u16,
width: u16,
height: u16
) -> Result<(), ERR>
Transmits partial data to the SRAM of the EPD Read more
fn display_frame(&mut self) -> Result<(), ERR>
[src]
fn display_frame(&mut self) -> Result<(), ERR>
Displays the frame data from SRAM
fn update_and_display_frame(&mut self, buffer: &[u8]) -> Result<(), ERR>
[src]
fn update_and_display_frame(&mut self, buffer: &[u8]) -> Result<(), ERR>
Loads a full image on the EPD and displays it
fn update_and_display_partial_frame(
&mut self,
buffer: &[u8],
x: u16,
y: u16,
width: u16,
height: u16
) -> Result<(), ERR>
[src]
fn update_and_display_partial_frame(
&mut self,
buffer: &[u8],
x: u16,
y: u16,
width: u16,
height: u16
) -> Result<(), ERR>
Loads a partial image on the EPD and displays it
fn clear_frame(&mut self) -> Result<(), ERR>
[src]
fn clear_frame(&mut self) -> Result<(), ERR>
Clears the frame from the buffer with the declared background color The background color can be changed with [set_background_color
] Read more
fn set_background_color(&mut self, background_color: Color)
[src]
fn set_background_color(&mut self, background_color: Color)
Sets the backgroundcolor for various commands like WaveshareInterface::clear_frame()
fn background_color(&self) -> &Color
[src]
fn background_color(&self) -> &Color
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> 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,
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,