Struct lcd::Display [−][src]
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.
pub fn display(
&mut self,
display: DisplayMode,
cursor: DisplayCursor,
blink: DisplayBlink
) -> &Self
pub fn display(
&mut self,
display: DisplayMode,
cursor: DisplayCursor,
blink: DisplayBlink
) -> &Self
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
).
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).
Trait Implementations
Writes a string slice into this writer, returning whether the write succeeded. Read more