pub trait DisplayConfig {
    type Error;

    // Required methods
    fn set_rotation(
        &mut self,
        rotation: DisplayRotation
    ) -> Result<(), Self::Error>;
    fn init(&mut self) -> Result<(), Self::Error>;
}
Expand description

Common functions to all display modes.

Required Associated Types§

source

type Error

Error.

Required Methods§

source

fn set_rotation(&mut self, rotation: DisplayRotation) -> Result<(), Self::Error>

Set display rotation.

source

fn init(&mut self) -> Result<(), Self::Error>

Initialise and configure the display for the given mode.

Implementors§