oled_async 0.2.1

Driver for various OLED display controllers. e.g. SH110x SSD130X works with embedded-graphics
Documentation
//! Display variant

use display_interface::{AsyncWriteOnlyDataCommand, DisplayError};

/// Trait to represent a speciffic display
pub trait DisplayVariant {
    /// Width of display
    const WIDTH: u8;
    /// Height of display
    const HEIGHT: u8;
    /// Coumn offset
    const COLUMN_OFFSET: u8 = 0;
    /// Large Page Address
    const LARGE_PAGE_ADDRESS: bool = false;

    /// Get integral dimensions from DisplaySize
    fn dimensions() -> (u8, u8) {
        (Self::WIDTH, Self::HEIGHT)
    }

    /// Initialise the display for column mode
    #[allow(async_fn_in_trait)]
    async fn init_column_mode<DI>(iface: &mut DI) -> Result<(), DisplayError>
    where
        DI: AsyncWriteOnlyDataCommand;
}