RKTK API Docs RKTK Home Repo

Trait DisplayConfig

Source
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§