Struct epd_waveshare::epd2in9::Display2in9 [−][src]
pub struct Display2in9 { /* fields omitted */ }
Expand description
Display with Fullsize buffer for use with the 2in9 EPD
Can also be manuall constructed:
buffer: [DEFAULT_BACKGROUND_COLOR.get_byte_value(); WIDTH / 8 * HEIGHT]
Trait Implementations
Returns the buffer
Returns a mutable buffer
Sets the rotation of the display
Get the current rotation of the display
Clears the buffer of the display with the chosen background color
fn draw_helper(
&mut self,
width: u32,
height: u32,
pixel: Pixel<BinaryColor>
) -> Result<(), Self::Error>
fn draw_helper(
&mut self,
width: u32,
height: u32,
pixel: Pixel<BinaryColor>
) -> Result<(), Self::Error>
Helperfunction for the Embedded Graphics draw trait Read more
type Color = BinaryColor
type Color = BinaryColor
The pixel color type the targetted display supports.
type Error = Infallible
type Error = Infallible
Error type to return when a drawing operation fails. Read more
Draw individual pixels to the display without a defined order. Read more
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
Fill a given area with an iterator providing a contiguous stream of pixel colors. Read more
Fill a given area with a solid color. Read more
Auto Trait Implementations
impl RefUnwindSafe for Display2in9
impl Send for Display2in9
impl Sync for Display2in9
impl Unpin for Display2in9
impl UnwindSafe for Display2in9
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Returns the bounding box.
Casts the value.
Casts the value.
Casts the value.
Casts the value.