Struct ssd1306::builder::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

Builder struct. Driver options and interface are set using its methods.

Implementations§

Create new builder with a default size of 128 x 64 pixels and no rotation.

Set the size of the display. Supported sizes are defined by DisplaySize.

Set the I2C address to use. Defaults to 0x3C which is the most common address. The other address specified in the datasheet is 0x3D. Ignored when using SPI interface.

Set the rotation of the display to one of four values. Defaults to no rotation. Note that 90º and 270º rotations are not supported by TerminalMode.

Finish the builder and use I2C to communicate with the display

Finish the builder and use SPI to communicate with the display

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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.