[][src]Struct ssd1362::display::Display

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

Implementations

impl<DI> Display<DI> where
    DI: WriteOnlyDataCommand
[src]

pub fn new(iface: DI, rotation: DisplayRotation) -> Display<DI>[src]

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

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

pub fn dimensions(&self) -> (usize, usize)[src]

pub fn set_draw_area(
    &mut self,
    start: (u8, u8),
    end: (u8, u8)
) -> Result<(), DisplayError>
[src]

Set the position in the framebuffer of the display limiting where any sent data should be drawn. This method can be used for changing the affected area on the screen as well as (re-)setting the start point of the next draw call. Only works in Horizontal or Vertical addressing mode

pub fn draw(&mut self, buffer: &[u8]) -> Result<(), DisplayError>[src]

Send the data to the display for drawing at the current position in the framebuffer and advance the position accordingly. Cf. set_draw_area to modify the area affected by this method in horizontal / vertical mode.

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

Turn the display on.

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

Turn the display off.

pub fn scroll(&mut self, offset: u8) -> Result<(), DisplayError>[src]

Auto Trait Implementations

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

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

impl<DI> Unpin for Display<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> Same<T> for T

type Output = T

Should always be Self

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.