Struct pwr_hd44780::BufferedLcd
[−]
[src]
pub struct BufferedLcd { /* fields omitted */ }
Methods
impl Buffered
[src]
pub fn new(lcd: Box<Direct>) -> Result<Buffered>
[src]
Creates a new buffered HD44780 basing on previously existing direct one.
pub fn render(&mut self) -> UnitResult
[src]
Refreshes the screen.
pub 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. Read more
fn print_char(&mut self, ch: u8) -> UnitResult
[src]
Prints a single ASCII character at current cursor's position and moves the cursor. Can be used to print custom-made characters (ie. the ones created by create_char
). Read more
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
means that the whole character box is blinking (a whole 5x8 or 5x10 box), Read more
fn set_cursor_visible(&mut self, enabled: bool) -> UnitResult
[src]
Enables / disables the cursor. Visible
means that only bottom of the character box is blinking (a single line). 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_char_at(&mut self, y: usize, x: usize, ch: u8) -> UnitResult
[src]
Prints a single ASCII character at given position and moves the cursor. Can be used to print custom-made characters (ie. the ones created by create_char
). Read more
fn print<T: Into<String>>(&mut self, str: T) -> UnitResult
[src]
Prints a string at current cursor's position and moves the cursor. Read more
fn print_at<T: Into<String>>(
&mut self,
y: usize,
x: usize,
str: T
) -> UnitResult
[src]
&mut self,
y: usize,
x: usize,
str: T
) -> UnitResult
Prints a string at given position. Read more