[−][src]Struct ssd1327::display::Ssd1327
Represents the SSD1327 Display.
Use this struct to initialize the driver.
Implementations
impl<DI: WriteOnlyDataCommand> Ssd1327<DI>
[src]
pub fn new(display: DI) -> Self
[src]
Creates the SSD1327 Display.
Make sure to reset and initialize the display before use!
pub fn reset<RST, DELAY>(
&mut self,
rst: &mut RST,
delay: &mut DELAY
) -> Result<(), DisplayError> where
RST: OutputPin,
DELAY: DelayMs<u8>,
[src]
&mut self,
rst: &mut RST,
delay: &mut DELAY
) -> Result<(), DisplayError> where
RST: OutputPin,
DELAY: DelayMs<u8>,
Resets the display.
pub fn init(&mut self) -> Result<(), DisplayError>
[src]
Initializes the display.
pub fn send_command(&mut self, command: Command) -> Result<(), DisplayError>
[src]
Allows to send custom commands to the display.
pub fn flush(&mut self) -> Result<(), DisplayError>
[src]
Flushes the display, and makes the output visible on the screen.
Trait Implementations
impl<DI> DrawTarget<Gray4> for Ssd1327<DI>
[src]
type Error = DisplayError
Error type to return when a drawing operation fails. Read more
fn draw_pixel(&mut self, pixel: Pixel<Gray4>) -> Result<(), Self::Error>
[src]
fn size(&self) -> Size
[src]
fn draw_iter<T>(&mut self, item: T) -> Result<(), Self::Error> where
T: IntoIterator<Item = Pixel<C>>,
[src]
T: IntoIterator<Item = Pixel<C>>,
fn clear(&mut self, color: C) -> Result<(), Self::Error>
[src]
fn draw_line(
&mut self,
item: &Styled<Line, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Line, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_triangle(
&mut self,
item: &Styled<Triangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Triangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_rectangle(
&mut self,
item: &Styled<Rectangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Rectangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_circle(
&mut self,
item: &Styled<Circle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Circle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_image<'b, I>(
&mut self,
item: &'a Image<'b, I, C>
) -> Result<(), Self::Error> where
C: PixelColor + From<<C as PixelColor>::Raw>,
I: ImageDimensions,
&'b I: IntoPixelIter<C>,
[src]
&mut self,
item: &'a Image<'b, I, C>
) -> Result<(), Self::Error> where
C: PixelColor + From<<C as PixelColor>::Raw>,
I: ImageDimensions,
&'b I: IntoPixelIter<C>,
Auto Trait Implementations
impl<DI> Send for Ssd1327<DI> where
DI: Send,
DI: Send,
impl<DI> Sync for Ssd1327<DI> where
DI: Sync,
DI: Sync,
impl<DI> Unpin for Ssd1327<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,
pub 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, 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.
pub 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>,