[][src]Struct ssd1327::display::Ssd1327

pub struct Ssd1327<DI> { /* fields omitted */ }

Represents the SSD1327 Display.

Use this struct to initialize the driver.

Implementations

impl<DI: WriteOnlyDataCommand> Ssd1327<DI>[src]

pub fn new(display: DI) -> Self[src]

Creates the SSD1327 Display.

Make sure to reset and initialize the display before use!

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

Resets the display.

pub fn init(&mut self) -> Result<(), DisplayError>[src]

Initializes the display.

pub fn send_command(&mut self, command: Command) -> Result<(), DisplayError>[src]

Allows to send custom commands to the display.

pub fn flush(&mut self) -> Result<(), DisplayError>[src]

Flushes the display, and makes the output visible on the screen.

Trait Implementations

impl<DI> DrawTarget<Gray4> for Ssd1327<DI>[src]

type Error = DisplayError

Error type to return when a drawing operation fails. Read more

Auto Trait Implementations

impl<DI> Send for Ssd1327<DI> where
    DI: Send

impl<DI> Sync for Ssd1327<DI> where
    DI: Sync

impl<DI> Unpin for Ssd1327<DI> where
    DI: 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.