[−][src]Struct ssd1306::mode::terminal::TerminalMode
Terminal mode handler
Methods
impl<DI> TerminalMode<DI> where
DI: DisplayInterface,
[src]
DI: DisplayInterface,
pub fn clear(&mut self) -> Result<(), ()>
[src]
Clear the display
pub fn reset<RST, DELAY>(&mut self, rst: &mut RST, delay: &mut DELAY) where
RST: OutputPin,
DELAY: DelayMs<u8>,
[src]
RST: OutputPin,
DELAY: DelayMs<u8>,
Reset display
pub fn flush(&mut self) -> Result<(), ()>
[src]
Write out data to display. This is a noop in terminal mode.
pub fn print_char<T>(&mut self, c: T) -> Result<(), ()> where
TerminalMode<DI>: CharacterBitmap<T>,
[src]
TerminalMode<DI>: CharacterBitmap<T>,
Print a character to the display
pub fn init(&mut self) -> Result<(), ()>
[src]
Initialise the display in column mode (i.e. a byte walks down a column of 8 pixels) with column 0 on the left and column (display_width - 1) on the right.
pub fn set_rotation(&mut self, rot: DisplayRotation) -> Result<(), ()>
[src]
Set the display rotation
Trait Implementations
impl<DI> DisplayModeTrait<DI> for TerminalMode<DI> where
DI: DisplayInterface,
[src]
DI: DisplayInterface,
fn new(properties: DisplayProperties<DI>) -> Self
[src]
Create new TerminalMode instance
fn release(self) -> DisplayProperties<DI>
[src]
Release all resources used by TerminalMode
impl<DI> CharacterBitmap<char> for TerminalMode<DI> where
DI: DisplayInterface,
[src]
DI: DisplayInterface,
A 7x7 font shamelessly borrowed from https://github.com/techninja/MarioChron/
impl<DI> Write for TerminalMode<DI> where
DI: DisplayInterface,
[src]
DI: DisplayInterface,
fn write_str(&mut self, s: &str) -> Result<(), Error>
[src]
fn write_char(&mut self, c: char) -> Result<(), Error>
1.1.0[src]
Writes a [char
] into this writer, returning whether the write succeeded. Read more
fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>
1.0.0[src]
Glue for usage of the [write!
] macro with implementors of this trait. Read more
Auto Trait Implementations
impl<DI> Send for TerminalMode<DI> where
DI: Send,
DI: Send,
impl<DI> Sync for TerminalMode<DI> where
DI: Sync,
DI: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut 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,