[−][src]Struct ssd1362::display::Display
Implementations
impl<DI> Display<DI> where
DI: WriteOnlyDataCommand,
[src]
DI: WriteOnlyDataCommand,
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]
&mut self,
start: (u8, u8),
end: (u8, u8)
) -> Result<(), DisplayError>
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,
DI: Send,
impl<DI> Sync for Display<DI> where
DI: Sync,
DI: Sync,
impl<DI> Unpin for Display<DI> where
DI: Unpin,
DI: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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>,