Trait ssd1306::size::DisplaySize[][src]

pub trait DisplaySize {
    type Buffer: AsMut<[u8]> + NewZeroed;

    const WIDTH: u8;
    const HEIGHT: u8;
    const DRIVER_COLS: u8;
    const DRIVER_ROWS: u8;
    const OFFSETX: u8;
    const OFFSETY: u8;

    fn configure(
        &self,
        iface: &mut impl WriteOnlyDataCommand
    ) -> Result<(), DisplayError>; }
Expand description

Display information.

This trait describes information related to a particular display. This includes resolution, offset and framebuffer size.

Associated Types

Size of framebuffer. Because the display is monocrome, this is width * height / 8

Associated Constants

Width in pixels

Height in pixels

Maximum width supported by the display driver

Maximum height supported by the display driver

Horizontal offset in pixels

Vertical offset in pixels

Required methods

Send resolution and model-dependent configuration to the display

See Command::ComPinConfig and Command::InternalIref for more information

Implementors