pub struct Sh1122Device<T: Sh1122Interface> { /* private fields */ }Implementations§
Source§impl<T: Sh1122Interface> Sh1122Device<T>
impl<T: Sh1122Interface> Sh1122Device<T>
pub fn with_interface(interface: T, width: usize, height: usize) -> Self
pub fn display_on(&mut self) -> Result<()>
pub fn display_off(&mut self) -> Result<()>
pub fn set_contrast(&mut self, contrast: u8) -> Result<()>
pub fn set_inverted(&mut self, inverted: bool) -> Result<()>
pub fn init_display(&mut self) -> Result<()>
pub fn print_buffer(&self)
pub fn flush(&mut self) -> Result<()>
pub fn partial_flush( &mut self, x: usize, y: usize, width: usize, height: usize, ) -> Result<()>
Trait Implementations§
Source§impl<If: Sh1122Interface> Framebuffer<u8> for Sh1122Device<If>
impl<If: Sh1122Interface> Framebuffer<u8> for Sh1122Device<If>
fn get_width(&self) -> usize
fn get_height(&self) -> usize
fn get_pixel(&self, x: usize, y: usize) -> u8
fn set_pixel(&mut self, x: usize, y: usize, pixel: u8)
fn fill(&mut self, pixel: u8)
fn partial_fill( &mut self, x: usize, y: usize, width: usize, height: usize, pixel: u8, )
Auto Trait Implementations§
impl<T> Freeze for Sh1122Device<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sh1122Device<T>where
T: RefUnwindSafe,
impl<T> Send for Sh1122Device<T>where
T: Send,
impl<T> Sync for Sh1122Device<T>where
T: Sync,
impl<T> Unpin for Sh1122Device<T>where
T: Unpin,
impl<T> UnwindSafe for Sh1122Device<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more