how to scroll message on lcd?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am unable to scroll the message on lcd. Help needed..

   

thanks

0 Likes
7 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

You will have to do that (depending on LCD) manually, saving the text on line 1 and when scrolling writing the text to line 0

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Basically use a char buffer that holds message. Then use a variable

   

to indicate which column to start write. Perform the first message write,

   

char at a time, until you hit display end with a counter variable) then

   

finish remaining chars at beginning of display. Then inc the column start

   

variable, testing ot for overflow at end of display, and resetting to 0 if necessary.

   

Wait for a period of time that controls how fast update you want the scroll to

   

run at. If message shorter then LCD row then either buffer it with " "s or

   

keep track with a variable and write the balance in " ".

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Thank you!!   
0 Likes
Anonymous
Not applicable
        Can I use more than 8 custom characters?   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When you are using the LCD module that comes with the CY8CKIT-050 the answer is "NO".

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The component in Creator is based on the Hitachi/Renesas 44780 controller. From its

   

datasheet -

   

 

   

Character Generator RAM (CGRAM)

   


In the character generator RAM, the user can rewrite character patterns by program. For 5 × 8 dots, eight
character patterns can be written, and for 5 × 10 dots, four character patterns can be written.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Thanks!   
0 Likes