Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hi,
i am using 2*16 lcd dispaly connected with 89c51.
please help me by provideing the particlar command or embedded c code.
regin said:how to scroll two rows of lcd in different direction?
while(1) {
scroll(top, a);
scroll(bottom, 16-a);
a++;
a %= 16;
delay();
}
my aim is to scroll a display from right to left in first row and at the same time(set delay but not visible for human eye) scroll another string from left to right in the second row.
my aim is to scroll a display from right to left in first row and at the same time
(set delay but not visible for human eye) scroll another string from left to right in the second row.
MoveTo(0,0); // Go to top left
for(i = 0 ; i < 16 ; ++i) WriteChar(line[i]); // Let's call this line A
char roll(char shiftval, char val) {
val += shiftval;
if(val > 15) val -= 16;
return val;
}
char roll(char shiftval, char val) {
val += shiftval;
if(val > 15) val -= 16;
return val;
}
It seems to me, that you should roll a pointer to line[] rather than the character code.