Scrolled text message on line


I want to make a scrolled text line on a OLED 0.96 display.

For example i have 5 text lines.
Line 1,2,3 have fixed message.

Line 4 and 5 need scroll in horizontal direction. Message is bigger then view area.

Anyone can help me to do this?



Do you have any buttons or a keypad on your project?

You can add code to use your buttons to scroll your lines; OR you can break your line 4 and 5 into portions that fit and use a timer to "cycle" the code to make it legible.

Some soda pop machines in the US have a 2x16 LCD. That cycles a message... on two lines... not sure of exact text.

Insert $1.50
and select
your drink