Expand description
Properties of the display, such as dimensions and rotation.
This struct is typically used internally by the Sh1106 driver, but can be interacted with
via methods like set_rotation on the driver or canvas.
use mini_oled::screen::properties::{DisplayProperties, DisplayRotation};
// DisplayProperties is used internally but can be default initialized.
// The generic parameters are Width, Height, and Offset.
let properties: DisplayProperties<128, 64, 2> = DisplayProperties::default();
// DisplayRotation is used to configure the screen orientation.
let rotation = DisplayRotation::Rotate90;Structs§
- Display
Properties - Properties of the display, such as dimensions and rotation.
Enums§
- Display
Rotation - Display rotation configuration.