Struct pwr_hd44780::DirectLcd
[−]
[src]
pub struct DirectLcd { /* fields omitted */ }
Methods
impl Direct
[src]
pub fn new(bus: Box<Bus>, width: usize, height: usize) -> Result<Direct>
[src]
Creates a new direct HD44780 on given bus.
pub 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. 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