EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

LCD Algorithm

Started by Jim July 16, 2004
Hi,

  Does anyone have a good Algorithm to scroll text across an 8 character 
lcd display using the microchip c18 c compiler library. I would 
appreciate any help

Thank You

Jim

Most text LCDs provide a function that allows you to shift/scroll the
display left or right. If you want to scroll up/down the 8 chars.. that a
whole different thing.


"Jim" <JimsJnkMail@Netscape.net> wrote in message
news:h2%Jc.48923$IX4.5868144@twister.tampabay.rr.com...
> Hi, > > Does anyone have a good Algorithm to scroll text across an 8 character > lcd display using the microchip c18 c compiler library. I would > appreciate any help > > Thank You > > Jim >
On Sat, 17 Jul 2004 01:12:45 GMT, Jim <JimsJnkMail@Netscape.net> wrote:

>Hi, > > Does anyone have a good Algorithm to scroll text across an 8 character >lcd display using the microchip c18 c compiler library. I would >appreciate any help
do { string[0] = string[1]; string[1] = string[2]; string[2] = string[3]; string[3] = string[4]; string[4] = string[5]; string[5] = string[6]; string[6] = string[7]; string[7] = new_char; display_string_on_lcd(string); } while scrolling(); -- Rich Webb Norfolk, VA

The 2024 Embedded Online Conference