Current implementation is confusing. Entry mode set command uses 2 bits - lowest one is for disabling (0) or enabling (1) display shift, and shift direction is specified by second bit (0 shifts right, 1 shifts left). Second bit itself is used to increment (1) or decrement (0) the DDRAM address (cursor position) when new character is put to DDRAM.
Current implementation is confusing. Entry mode set command uses 2 bits - lowest one is for disabling (
0
) or enabling (1
) display shift, and shift direction is specified by second bit (0
shifts right,1
shifts left). Second bit itself is used to increment (1
) or decrement (0
) the DDRAM address (cursor position) when new character is put to DDRAM.Suggesting the following naming: