Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
LCD dislay scrolling |
Posted: Wed Mar 28, 2012 4:40 pm |
|
|
I believe that the display you're using is an 80 character display, but you can only see a window of 32.
When you "go out of bounds" as you call it you're writing to RAM locations outside the visible window.
You have loads of options including:-
(1) Write 16 chars to line 1, jump to line 2, write 16 chars, clear line 1, copy line 2 to line 1, clear line 2, continue writing to line 2.
(2) Start as (1) but shift different blocks of RAM into visible area. (Saves some copying)
(3) Start as (1), use the automatic write and shift feature.
(4) .................
Which ever way you decide to go, I believe you need to keep track of the number of characters sent to the display.
Mike |
|