SSD1306 128x64 OLED Screen how to scroll text right

Hello,

I would like to create a scrolling text only in one part of the 128x64 OLED screen. Specifically the part which is yellow. You can see the attached picture.

For example, i would like to display “ThingSpeak Ok” for 5 seconds then scroll text right and display “IP address” for 5 seconds.

My issue is that when i call the function startscrollright() inside void loop() the text starts flickering without any scroll movement. I suspect that is because the void loop() function is constantly running and constantly calling the function startscrollright().

I do not want to use the delay() function because that would make the whole code and display stop.

Can you please point me in the right direction? How should i proceed?

Thank you!

I do not want to use the delay() function because that would make the whole code and display stop.

Take a look at Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE