[][src]Struct ssd1675::display::Display

pub struct Display<'a, I> where
    I: DisplayInterface
{ /* fields omitted */ }

A configured display with a hardware interface.

Methods

impl<'a, I> Display<'a, I> where
    I: DisplayInterface
[src]

pub fn new(interface: I, config: Config<'a>) -> Self[src]

Create a new display instance from a DisplayInterface and Config.

The Config is typically created with config::Builder.

pub fn reset<D: DelayMs<u8>>(&mut self, delay: &mut D) -> Result<(), I::Error>[src]

Perform a hardware reset followed by software reset.

This will wake a controller that has previously entered deep sleep.

pub fn update<D: DelayMs<u8>>(
    &mut self,
    black: &[u8],
    red: &[u8],
    delay: &mut D
) -> Result<(), I::Error>
[src]

Update the display by writing the supplied B/W and Red buffers to the controller.

This method will write the two buffers to the controller then initiate the update display command. Currently it will busy wait until the update has completed.

pub fn deep_sleep(&mut self) -> Result<(), I::Error>[src]

Enter deep sleep mode.

This puts the display controller into a low power mode. reset must be called to wake it from sleep.

pub fn rows(&self) -> u16[src]

Returns the number of rows the display has.

pub fn cols(&self) -> u8[src]

Returns the number of columns the display has.

pub fn rotation(&self) -> Rotation[src]

Returns the rotation the display was configured with.

Auto Trait Implementations

impl<'a, I> Send for Display<'a, I> where
    I: Send

impl<'a, I> Sync for Display<'a, I> where
    I: Sync

impl<'a, I> Unpin for Display<'a, I> where
    I: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.