pub struct Display<'a, I> where
    I: DisplayInterface
{ /* private fields */ }
Expand description

A configured display with a hardware interface.

Implementations

Create a new display instance from a DisplayInterface and Config.

The Config is typically created with config::Builder.

Perform a hardware reset followed by software reset.

This will wake a controller that has previously entered deep sleep.

Update the display by writing the supplied B/W and Red buffers to the controller.

This method will write the two buffers to the controller then initiate the update display command. Currently it will busy wait until the update has completed.

Enter deep sleep mode.

This puts the display controller into a low power mode. reset must be called to wake it from sleep.

Returns the number of rows the display has.

Returns the number of columns the display has.

Returns the rotation the display was configured with.

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.

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

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.