Expand description
Command to control LCD
Structs§
- Command
- A sender should parse a
Command
and send the data to hardware to write/read data to/from hardware.
Enums§
- Bits
Bits
defines current command’s data width.
Most of the command should be 8 bit long, but fisrt command inDataWidth::Bit4
mode is special, it requires 4 bit data.- Command
Set - It contain all commands from LCD1602 datasheet
- Data
Width DataWidth
defines data width of aCommand
Should match current Sender’s pin config- Font
Font
is current display font- Line
Mode LineMode
is current LCD display line count- Move
Direction MoveDirection
defines the cursor and display window move direction- RAMType
RAMType
is the type of memory to access- Read
Write Op ReadWriteOp
defines read/write operation that driver interact with.
A sender should change its “RW” pin state based on this variant.- Register
Selection RegisterSelection
defines LCD1602’s register type that driver interact with.
A sender should change its “RS” pin state based on this variant.- Shift
Type ShiftType
defines the movement is cursor only or both cursor and display window- State
State
defines a On/Off state