If it’s character by character scrolling you feed each character into a FIFO buffer of 16 char length,
(or however long a line of the display is) rotate the byte buffer (should be a byte array)
so the last character is ditched. You print the FIFO buffer to the display for each frame.