Struct sh1106::builder::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

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

See the module level documentation for more details.

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.

Finish the builder and use I2C to communicate with the display

Finish the builder and use SPI to communicate with the display

If the Chip Select (CS) pin is not required, NoOutputPin can be used as a dummy argument

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

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

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.