Struct lcd::Display[][src]

pub struct Display<HW: Hardware + Delay> { /* fields omitted */ }
Expand description

Object implementing HD44780 protocol. Stateless (could be created as many times as needed).

Implementations

Initialize LCD display. Sets an equivalent of the following setup:

lcd.display(DisplayMode::DisplayOff, DisplayCursor::CursorOff, DisplayBlink::BlinkOff);
lcd.clear();
lcd.entry_mode(EntryModeDirection::EntryRight, EntryModeShift::NoShift);

Clears display and returns cursor to the home position (address 0).

Returns cursor to home position. Also returns display being shifted to the original position. DDRAM content remains unchanged.

Sets cursor move direction (entry); specifies to shift the display (scroll). These operations are performed during data read/write.

Sets on/off of all display (display), cursor on/off (cursor), and blink of cursor position character (blink).

Sets display-shift, direction (dir). DDRAM content remains unchanged.

Sets cursor-shift, direction (dir). DDRAM content remains unchanged.

Sets the cursor position to the given row (row) and column (col).

Print given string (str) on the LCD screen.

Write given character (given as data of type u8) on the LCD screen.

Upload character image at given location. Only locations 0-7 are supported (panics otherwise). Each character is represented by an array of 8 bytes, each byte being a row. Only 5 bits are used from each byte (representing columns).

Unwrap HAL back from the driver.

Trait Implementations

Writes a string slice into this writer, returning whether the write succeeded. Read more

Writes a char into this writer, returning whether the write succeeded. Read more

Glue for usage of the write! macro with implementors of this trait. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.