There is not a single line in your code that would cause scrolling of only one line. Why do you expect only the second line to move? Where is this in the code? And why exactly the second, and not the first or, for example, the fourth???
It is very common for problems posted here are caused by code not in the snippet posted. That may not be the case with your code but seeing the whole sketch can be helpful
Why not make it easier to provide help and post a smaller but complete sketch that illustrates the problem ?
because it has more characters than "Welcome"? I want to make the text of the 2nd row all visible. and the Welcome will stay put I don't know if this is possible
If English is not your native language, please use a translator, I don’t understand well what you write.
I don't understand, how the length of lines related to the scrolling.
I asked you, where you defined in your code that you want to scroll only second line. I don't see anything similar in the code.
The LCD screen I'm using has a limitation in its display capacity, allowing only up to 16 characters to be shown at any given time. This means when I attempt to display more than 16 characters, the excess characters are not visible on the screen. This limitation poses a challenge, especially when I need to display critical information that exceeds the 16-character limit. So I want to use the scroll function.
But I still not understand, why you expected that your code will scroll only the second line. You done nothing for it.
You would scroll the single line manually - print the line, wait the some milliseconds, then clean the line and redraw it at the new position. And so on