Hello,
An alternative to BN's suggestion is to make use of the "Entry mode set" command, rather than the cursor/display shift command. Reference to these commands can be found within AN1745. Here is an extract from the application note:
Entry Mode Set
I/D — Increments (I/D = 1) or decrements (I/D = 0) the DDRAM address by 1 when a character code is written into or read from DDRAM. The cursor or blinking moves to the right when incremented by 1 and to the left when decremented by 1. The same applies to writing and reading of CGRAM.
S — Shifts the entire display either to the right (ID = 0) or to the left (I/D = 1) when S is 1. The display does not shift if S is 0. If S is 1, it will seem as if the cursor does not move but the display does. The display does not shift when reading from DDRAM. Also, writing into or reading out from CGRAM does not shift the display.
To set the mode that you require would need a command value of 0x07.
The advantage of this method would seem that the left shift of the display would occur automatically whenever each character was written. With the previous method, the display shift command would need to be given prior to writing each character to the display.
Regards,
Mac