Scrolling text on display


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2004
    Location
    CA
    Posts
    78

    Default Scrolling text on display

    Hi all, I have a dot programmable display that I am using with my PIC16F877A, I am communicating with this display serially(SPI) with a synchronous clock and data signals. My intentions are to have a scrolling text that goes from right to left. I am having a hard time trying to conceptualize on how to shift a particular text. I was wondering if you have any suggestions for my problem. maybe a pseudocode along with a sample code would be very helpful. Any help would be greatly appreciated, thanks.


    Srig

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Which LED Driver are You using

    Hi Srigopal,

    I need to know which LED driver you are using. Is it from the Maxim or Altera stable ? Let's get the things straight :

    1. You need to load data into the display.

    2. You need to wait a few miliseconds

    3. You need to shift the data and go to step one.

    Additionally you might want to fetch data. So use an array and do some table read stuff.

    Regards

    Sougata

  3. #3
    Join Date
    Jul 2005
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    I didnt want to open a new topic, how can we do "Vertical Scrolling Text" with PBP ? From Up to Down or from Down to Up ? with 2x16 dot matrix lcd and 16f876.

    regards...

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Hi muskut,

    I think reading carefully your LCD DATASHEET could lead you to find it has special commands to shift R/L and "soft scroll" ...

    Depends upon the built in controller of your LCD ...

    another solution is to write the lines to the LCD , pause a while to stare at them, Read ( w pic !!!) the first line in the LCD memory, and send back the new first line and "old" first line to your LCD ...

    Alain
    Last edited by Acetronics2; - 4th August 2005 at 08:06.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    But if you plan to do some smooth scrolling... you better use some GLCD. a 2 lines character display will not do the effect you want... well i guess.

    It's not impossible with a character display but you'll have to build a load of specific half, quater dimension character table and refer to them do produce the effect.... much code than results IMHO.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Thumbs down I agree with mister_e

    It is not practical to do a smooth vertical scroll on display. Even if you use half and quarter height custom characters the gap between the first and the second line is bigger than that between characters.

    You can copy the second line to the first line, then write a new second line and repeat the entire process with a pause. This would let you display much more info on that tiny LCD. However a graphic LCD would be a better option if you have enough room.

    Regards

    Sougata

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Talking

    Hi,

    Is there ... Is there ... some echoe .... Is there ... some echoe .... here ... some echoe ... here ... ???? ... ???? .... here ....

    Alain ... Alain ... Alain ... Alain ... Alain ...........

  8. #8
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Srig: If you just want one code example of how to scroll some text (sideways), download the Olympic Timer thread pdf wherein some text scrolling was put in just for fun.

Similar Threads

  1. 8x8 Scrolling LED display (Simple example)
    By wellyboot in forum Code Examples
    Replies: 68
    Last Post: - 11th July 2013, 05:03
  2. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  3. Replies: 2
    Last Post: - 5th November 2009, 17:07
  4. 5x7 LED Matrix Scrolling Display
    By roycarlson in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 4th August 2008, 23:50
  5. Replies: 14
    Last Post: - 26th September 2007, 05:41

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts