Struct pwr_hd44780::BufferedLcd
[−]
[src]
pub struct BufferedLcd { /* fields omitted */ }
Methods
impl Buffered
[src]
fn new(lcd: Box<Direct>) -> Result<Buffered>
[src]
Creates a new buffered HD44780 basing on previously existing direct one.
fn render(&mut self) -> UnitResult
[src]
Refreshes the screen.
fn println<T: Into<String>>(&mut self, str: T) -> UnitResult
[src]
Prints text at current cursor's position and moves to the next line.
Trait Implementations
impl Hd44780 for Buffered
[src]
fn clear(&mut self) -> UnitResult
[src]
Clears the screen and moves cursor at (0, 0).
fn home(&mut self) -> UnitResult
[src]
Moves the cursor at (0, 0).
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.