Shop OBEX P1 Docs P2 Docs Learn Events
Displaying text on LCD frm left to right(movement) ? — Parallax Forums

Displaying text on LCD frm left to right(movement) ?

FanTFanT Posts: 10
edited 2006-08-25 20:11 in BASIC Stamp
Hi there,

i'm trying to display text on a LCD display.
Mayb a simple word like " how r u "

i wan it to have the moving effect..from left to right...then back to the start.
and from left to right again. Repeatingly displaying the text.

i do not really have an idea how to do that.
can anyone enlighten me plz.
thanks

I am using a 2 rows x 16 characters Backlit LCD (#27977)
Programming on a BS2 chip.

Comments

  • Paul Sr.Paul Sr. Posts: 435
    edited 2006-08-25 12:35
    FanT said...
    Hi there,


    i'm trying to display text on a LCD display.
    Mayb a simple word like " how r u "



    i wan it to have the moving effect..from left to right...then back to the start.
    and from left to right again. Repeatingly displaying the text.



    i do not really have an idea how to do that.
    can anyone enlighten me plz.
    thanks



    I am using a 2 rows x 16 characters Backlit LCD (#27977)

    Programming on a BS2 chip.

    The StampWorks Manual has examples of this.

    www.parallax.com/dl/docs/books/sw/Web-sw-v2.0.pdf
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-25 14:11
    Note that the example in StampWorks pertains to the Parallel LCD and not the Serial LCD.· The Parallel LCD has commands for doing the scrolling.· On our serial LCD you would need to redraw the text at the new position cycling through the positions and then back.·

    It could be easily done with two FOR...NEXT loops.· In the first one you would draw the text at the home position plus the value of the index in the FOR...NEXT loop.· You would have to erase the previous character too.· Once done you do the reverse, erasing the last character when it's "on-screen".· I hope this helps.· Take care.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Paul Sr.Paul Sr. Posts: 435
    edited 2006-08-25 14:19
    Chris Savage (Parallax) said...
    Note that the example in StampWorks pertains to the Parallel LCD and not the Serial LCD. The Parallel LCD has commands for doing the scrolling. On our serial LCD you would need to redraw the text at the new position cycling through the positions and then back.


    It could be easily done with two FOR...NEXT loops. In the first one you would draw the text at the home position plus the value of the index in the FOR...NEXT loop. You would have to erase the previous character too. Once done you do the reverse, erasing the last character when it's "on-screen". I hope this helps. Take care.

    Ah, sorry I missed the [noparse][[/noparse]important] point that he was using serial.
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2006-08-25 15:52
    http://forums.parallax.com/showthread.php?p=531520

    In the Stamps in Class Forum, Andy Lindsay has made a sticky-thread with a project list.· One of them is "Getting Started with the Serial LCD" and the 4th activity (5th post) under that link is about scrolling text.·

    I hope this is what you are looking for!

    -Stephanie Lindsay
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-25 16:12
    Stephanie,

    ·· Yes, Activity #4 is exactly what he needs.· Thanks for the follow up.· I missed that one myself!· =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • FanTFanT Posts: 10
    edited 2006-08-25 20:11
    Thank you all great people very much for the great effort in helping me with my request/problems.
    I gratefully appreciate all you kind peoples' effort.
    now i can continue with my project =)
    cheers !
Sign In or Register to comment.