[−][src]Struct st7567::ST7567
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,
P: Send,
S: Send,
impl<P, S> Sync for ST7567<P, S> where
P: Sync,
S: Sync,
P: Sync,
S: Sync,
impl<P, S> Unpin for ST7567<P, S> where
P: Unpin,
S: Unpin,
P: Unpin,
S: Unpin,
impl<P, S> UnwindSafe for ST7567<P, S> where
P: UnwindSafe,
S: UnwindSafe,
P: UnwindSafe,
S: UnwindSafe,
impl<P, S> RefUnwindSafe for ST7567<P, S> where
P: RefUnwindSafe,
S: RefUnwindSafe,
P: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,