Struct pwr_hd44780::frontends::Direct
[−]
[src]
pub struct Direct { /* fields omitted */ }
Methods
impl Direct
[src]
fn new(bus: Box<Bus>, width: usize, height: usize) -> Result<Direct>
[src]
Creates a new direct HD44780 on given bus.
fn new_ex(bus: Box<Bus>, properties: Properties) -> Result<Direct>
[src]
Creates a new direct HD44780 on given bus.
Trait Implementations
impl Hd44780 for Direct
[src]
fn clear(&mut self) -> UnitResult
[src]
Clears the screen. It's a slow command, re-writing screen with new data should be a preferred way if one is concerned about the performance (that's precisely what the "buffered" frontend does).
fn home(&mut self) -> UnitResult
[src]
Moves cursor at (0, 0). It's actually slower than "move_at(0, 0)", because HD44780 takes some time to process this one.
fn move_at(&mut self, y: usize, x: usize) -> UnitResult
[src]
Moves the cursor at given position. When passed an invalid coordinates (eg. beyond the screen), does nothing. Read more
fn print_char(&mut self, ch: u8) -> UnitResult
[src]
Prints a single ASCII character and moves cursor.
fn set_backlight(&mut self, enabled: bool) -> UnitResult
[src]
Enables / disables the backlight.
fn set_cursor_blinking(&mut self, enabled: bool) -> UnitResult
[src]
Enables / disables blinking the cursor. Blinking = whole 5x8 / 5x10 character is blinking, Read more
fn set_cursor_visible(&mut self, enabled: bool) -> UnitResult
[src]
Enables / disables the cursor. Visible = only bottom of the character is blinking. Read more
fn set_text_visible(&mut self, enabled: bool) -> UnitResult
[src]
Shows / hides the text.
fn create_char(&mut self, idx: u8, lines: [u8; 8]) -> UnitResult
[src]
Creates a custom character from given bitmap. Read more
fn height(&self) -> usize
[src]
Returns screen's height (number of lines).
fn width(&self) -> usize
[src]
Returns screen's width (number of characters per line).
fn print<T: Into<String>>(&mut self, str: T) -> UnitResult
[src]
Prints a string at current cursor's position.