[][src]Trait ssd1306::mode::displaymode::DisplayModeTrait

pub trait DisplayModeTrait<DI, DSIZE>: Sized {
    pub fn new(properties: DisplayProperties<DI, DSIZE>) -> Self;
pub fn into_properties(self) -> DisplayProperties<DI, DSIZE>; pub fn release(self) -> DI { ... }
pub fn reset<RST, DELAY, PinE>(
        &mut self,
        rst: &mut RST,
        delay: &mut DELAY
    ) -> Result<(), Error<(), PinE>>
    where
        RST: OutputPin<Error = PinE>,
        DELAY: DelayMs<u8>
, { ... } }

Trait with core functionality for display mode switching

Required methods

pub fn new(properties: DisplayProperties<DI, DSIZE>) -> Self[src]

Allocate all required data and initialise display for mode

pub fn into_properties(self) -> DisplayProperties<DI, DSIZE>[src]

Deconstruct object and retrieve DisplayProperties

Loading content...

Provided methods

pub fn release(self) -> DI[src]

Release display interface

pub fn reset<RST, DELAY, PinE>(
    &mut self,
    rst: &mut RST,
    delay: &mut DELAY
) -> Result<(), Error<(), PinE>> where
    RST: OutputPin<Error = PinE>,
    DELAY: DelayMs<u8>, 
[src]

Reset the display

Loading content...

Implementors

impl<DI, DSIZE> DisplayModeTrait<DI, DSIZE> for GraphicsMode<DI, DSIZE> where
    DSIZE: DisplaySize
[src]

pub fn new(properties: DisplayProperties<DI, DSIZE>) -> Self[src]

Create new GraphicsMode instance

pub fn into_properties(self) -> DisplayProperties<DI, DSIZE>[src]

Release display interface used by GraphicsMode

impl<DI, DSIZE> DisplayModeTrait<DI, DSIZE> for TerminalMode<DI, DSIZE> where
    DI: WriteOnlyDataCommand,
    DSIZE: TerminalDisplaySize
[src]

pub fn new(properties: DisplayProperties<DI, DSIZE>) -> Self[src]

Create new TerminalMode instance

pub fn into_properties(self) -> DisplayProperties<DI, DSIZE>[src]

Release display interface used by TerminalMode

Loading content...