[][src]Struct st7567::ST7567

pub struct ST7567<P: Pin, S: Write<u8>> { /* fields omitted */ }

Controls the ST7567 LCD Display.

Methods

impl<P: Pin, S: Write<u8>> ST7567<P, S>[src]

pub fn new(spi: S, dc_pin: P, rst_pin: P) -> Self[src]

pub fn reset(&mut self) -> Result<(), Error<P, S>>[src]

pub fn set_contrast(&mut self, value: u8) -> Result<(), Error<P, S>>[src]

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

pub fn clear(&mut self)[src]

Clear the display buffer

pub fn set_pixel(&mut self, x: usize, y: usize, value: bool)[src]

Set a single pixel in the display buffer.

Ignore out of bound values for x & y

pub fn show(&mut self) -> Result<(), Error<P, S>>[src]

Update the ST7567 display with the buffer contents.

Auto Trait Implementations

impl<P, S> Send for ST7567<P, S> where
    P: Send,
    S: Send

impl<P, S> Sync for ST7567<P, S> where
    P: Sync,
    S: Sync

impl<P, S> Unpin for ST7567<P, S> where
    P: Unpin,
    S: Unpin

impl<P, S> UnwindSafe for ST7567<P, S> where
    P: UnwindSafe,
    S: UnwindSafe

impl<P, S> RefUnwindSafe for ST7567<P, S> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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