LCD Algorithm

Jul 17, 2004 2 Replies

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.

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required