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

Display driver to connect to TFT displays.

Implementations

Creates a new Display instance with [ILI9486] as the Model WARNING Rgb565 only works on non-SPI setups with the ILI9486!

Arguments

Creates a new Display instance with [ILI9486] as the Model

Arguments

Creates a new Display instance with ST7735s as the Model with a hard reset Pin

Arguments

Creates a new Display instance with ST7735s as the Model without a hard reset Pin

Arguments

Creates a new Display instance with ST7789 as the Model with a hard reset Pin

Arguments

Creates a new Display instance with ST7789 as the Model without a hard reset Pin

Arguments

Creates a new Display driver instance with given Model

Arguments

Runs commands to initialize the display

Arguments
  • delay_source - mutable reference to a DelayUs provider

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 and the RST pin 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.