I'm using following code for left/right text scrolling. But they are handling both the lines at the same time. Anybody can suggest anything so that I can scroll only single line ?
First create 2 16 byte 'buffers'(arrays) and copy the text you want to scroll from your program to the first .
Second, copy the data from the first buffer to the second,offsetting the indices(pointers).
Now move the data from the 2nd buffer to the LCD.
to scroll left to right..
outputbuffer[2]=inputbuffer[1].
to scroll right to left
ouputbuffer[2]=inputbuffer[3].
if you want the message to 'loop' around, copy [0] to [15] !
..actual code is up to you to do.
If you try it on graphpaper, it'll be easy to visualize the 'flow' of the code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum