Struct mipidsi::Display

source ·
pub struct Display<DI, MODEL, RST>where
    DI: WriteOnlyDataCommand,
    MODEL: Model,
    RST: OutputPin,
{ /* private fields */ }
Expand description

Display driver to connect to TFT displays.

Implementations§

Returns currently set Orientation

Sets display Orientation

Sets a pixel color at the given coords.

Arguments
  • x - x coordinate
  • y - y coordinate
  • color - the color value in pixel format of the display Model

Sets pixel colors in given rectangle bounds.

Arguments
  • sx - x coordinate start
  • sy - y coordinate start
  • ex - x coordinate end
  • ey - y coordinate end
  • colors - anything that can provide IntoIterator<Item = u16> to iterate over pixel data

Sets scroll region

Arguments
  • tfa - Top fixed area
  • vsa - Vertical scrolling area
  • bfa - Bottom fixed area

Sets scroll offset “shifting” the displayed picture

Arguments
  • offset - scroll offset in pixels

Release resources allocated to this driver back. This returns the display interface, reset pin and and the model deconstructing the driver.

Configures the tearing effect output.

Trait Implementations§

Error type to return when a drawing operation fails. Read more
The pixel color type the targetted display supports.
Draw individual pixels to the display without a defined order. Read more
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
Fill the entire display with a solid color. Read more
Returns the size of the bounding box.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Returns the bounding box.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts the value.
Casts the value.
Casts the value.
Casts the value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.