pub enum CommandSet {
ClearDisplay,
ReturnHome,
EntryModeSet(MoveDirection, ShiftType),
DisplayOnOff {
display: State,
cursor: State,
cursor_blink: State,
},
CursorOrDisplayShift(ShiftType, MoveDirection),
HalfFunctionSet,
FunctionSet(DataWidth, LineMode, Font),
SetCGRAM(u8),
SetDDRAM(u8),
ReadBusyFlagAndAddress,
WriteDataToRAM(u8),
ReadDataFromRAM,
}
Expand description
It contain all commands from LCD1602 datasheet
Variants§
ClearDisplay
ReturnHome
EntryModeSet(MoveDirection, ShiftType)
DisplayOnOff
CursorOrDisplayShift(ShiftType, MoveDirection)
HalfFunctionSet
This is not a command from datasheet.
It’s the first (half) command of 4 pin mode
we name it, to make things tidy
FunctionSet(DataWidth, LineMode, Font)
SetCGRAM(u8)
SetDDRAM(u8)
ReadBusyFlagAndAddress
WriteDataToRAM(u8)
ReadDataFromRAM
Trait Implementations§
Source§impl Clone for CommandSet
impl Clone for CommandSet
Source§fn clone(&self) -> CommandSet
fn clone(&self) -> CommandSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<CommandSet> for Command
impl From<CommandSet> for Command
Source§fn from(command: CommandSet) -> Self
fn from(command: CommandSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandSet
impl PartialEq for CommandSet
impl Copy for CommandSet
impl StructuralPartialEq for CommandSet
Auto Trait Implementations§
impl Freeze for CommandSet
impl RefUnwindSafe for CommandSet
impl Send for CommandSet
impl Sync for CommandSet
impl Unpin for CommandSet
impl UnwindSafe for CommandSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more