I trying to write code to scroll text across my LCD display (HD44780). I tried to find any solution of my problem but I didn't find.
Could you tell me the algorithm how to do it? Or source code?
I want to scroll the first line while the second will be fixed. I tried to do it without build in command 0x18 (scroll left) and 0x1e (scroll right). Is it possible? O
I'm using:
+Microcontroller: PIC18F550
+MPLAB, Hi Tech compiler
I regret to say that I know this example and author used here build in routine (code). 0x1C means that LCD will be shift to right. As I wrote I'd like to avoid it (if it is possible). Below is fragment of this code:
Code C - [expand]
1
2
3
4
5
while(1){
lcdcmd(0x1C);//Shift the entire display to right
delay(75);}
For a single character scrolling to the right, the algorithm is :
- write a character (row,col)
- delay 100 (ms) //scrolling speed
- delete it
- write it again (row,col+1)
- delay 100 (ms) //scrolling speed
- delete it
... etc