[][src]Trait ssd1306::displaysize::DisplaySize

pub trait DisplaySize {
    type BufferSize: ArrayLength<u8>;

    pub const WIDTH: u8;
    pub const HEIGHT: u8;
    pub const OFFSETX: u8;
    pub const OFFSETY: u8;

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

Display information

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

Associated Types

type BufferSize: ArrayLength<u8>[src]

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

Loading content...

Associated Constants

pub const WIDTH: u8[src]

Width in pixels

pub const HEIGHT: u8[src]

Height in pixels

pub const OFFSETX: u8[src]

Horizontal offset in pixels

pub const OFFSETY: u8[src]

Vertical offset in pixels

Loading content...

Required methods

pub fn configure(
    &self,
    iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]

Send resolution-dependent configuration to the display

See Command::ComPinConfig for more information

Loading content...

Implementors

impl DisplaySize for DisplaySize64x48[src]

type BufferSize = U384

impl DisplaySize for DisplaySize72x40[src]

type BufferSize = U360

impl DisplaySize for DisplaySize96x16[src]

type BufferSize = U192

impl DisplaySize for DisplaySize128x32[src]

type BufferSize = U512

impl DisplaySize for DisplaySize128x64[src]

type BufferSize = U1024

Loading content...