Scrolling the text on GLCD

Status
Not open for further replies.

misnomerfrenzy

Junior Member level 1
Joined
May 15, 2012
Messages
15
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,417
Hi,

It seems to be a cliche to ask code help for scrolling display. But, mostly the help is available for scrolling LED display or Char LCD display.

I am using 128x64 GLCD on which we write data using column scanning. So, scrolling of data from left to right or right to left is easy and I have implemented code for it.

But, I dont know how to scroll data from down to up and vice versa.

I have declared a buffer

Code:
//u8Row max value 63; u8Column max value 128
 G_u8DisplayRAM[u8Row][u8Column];

For horizontal scorlling, I follow this method...

Code:
for(u8Index= u8StartColumn; u8Index<u8EndColumn; u8Index++)
G_u8DisplayRAM[u8Row][u8Index] = G_u8DisplayRAM[u8Row][u8Index+1];  //left to right
OR
G_u8DisplayRAM[u8Row][u8Index] = G_u8DisplayRAM[u8Row][u8Index-1]; //right to left


However, for vertical scrolling following logic cant work
Code:
for(u8Index= u8StartRow; u8Index<u8EndRow; u8Index++)
{
  for (u8Column=u8StartColumn; u8Column < u8EndColumn; u8Column++)
  {
     G_u8DisplayRAM[u8Index][u8Column] = G_u8DisplayRAM[u8Index+1][u8Column];  //up to down
     OR
     G_u8DisplayRAM[u8Index][u8Column] = G_u8DisplayRAM[u8Index-1][u8Column]; //down to up
   }
}

If possible, please let me know the algorithm or sample code which can scroll text in vertical direction
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…