Struct mipidsi::builder::Builder

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

Constructor helper for creating Display instances Exposes all possible display options

Implementations§

Constructs a new builder for given Model using the model’s default_options

Sets the invert color flag

Sets the ColorOrder

Sets the Orientation

Inverts vertical refresh

Inverts horizontal refresh

Sets the display size

Sets the framebuffer size

Sets the window offset handler

Consumes the builder to create a new Display with an optional reset OutputPin. Blocks using the provided DelayUs delay_source to perform the display initialization.

WARNING

The reset pin needs to be in high state in order for the display to operate. If it wasn’t provided the user needs to ensure this is the case.

Creates a new [Display] instance with [ILI9341] as the Model with the default framebuffer size and display size of 240x320 WARNING Rgb565 only works on non-SPI setups with the ILI9341!

Arguments

Creates a new [Display] instance with [ILI9341] as the Model with the default framebuffer size and display size of 320x240

Arguments

Creates a new [Display] instance with [ILI9342C] as the Model with the default framebuffer size and display size of 320x240 WARNING Rgb565 only works on non-SPI setups with the ILI9342C!

Arguments

Creates a new [Display] instance with [ILI9342C] as the Model with the default framebuffer size and display size of 320x240

Arguments

Creates a new [Display] instance with [ILI9486] as the Model with the default framebuffer size and display size of 320x480 WARNING Rgb565 only works on non-SPI setups with the ILI9486!

Arguments

Creates a new [Display] instance with [ILI9486] as the Model with the default framebuffer size and display size of 320x480

Arguments

Creates a new [Display] instance with ST7735s as the Model with a hard reset Pin with the default framebuffer size of 132x162 and display size of 80x160

Arguments
  • di - a DisplayInterface for talking with the display
  • options - the [DisplayOptions] for this display/model

Creates a new [Display] instance with ST7789 as the super::Model with general variant using display framebuffer size of 240x320

Arguments

Creates a new [Display] instance with ST7789 as the super::Model with pico1 variant using display and framebuffer size of 135x240 and a clipping offset

Arguments

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 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.