Scroll text on LCD second line


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013
    Posts
    1

    Default Scroll text on LCD second line

    Hi,

    I am looking to scroll a second line on LCD Text.

    Here is a sample code I used.



    int main(){
    char *a ="Testing LCD";
    char *b ="ScrollingText";
    ....
    ....
    ....
    LCDInit();//Fn to intilise LCD

    LCD_Write(a,1); // fn to write data on first line of LCD
    LCD_Write(b,2); // fn to write data on second line of LCD

    while(1){
    LCDCommand(0x18); // shifting the entire text to left
    LCDDelayms(); // delay
    }
    }

    This code shift both lines of text.



    But I want to shift only the second line of LCD.

    Any help would be great.



    PIC30F5011/ MPLab IDE V8.8 / PICKIT3


    Regards,
    Raady.

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Scroll text on LCD second line

    Hi,

    You would probably get more answers in a C forum rather than the Pic Basic forum since the code you posted is in C language. Also I doubt Pic Basic supports the PIC30F..

    so you will have to look elsewhere

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Scroll text on LCD second line

    scroll (shift) the text buffer yourself in memory before sending it to the LCD
    rather than getting the LCD to scroll it.
    Bitwise rotate the entire text array eight times in the desired direction,
    or bytewise rotate it once.

Similar Threads

  1. Scroll LCD?
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st March 2010, 21:24
  2. Replies: 2
    Last Post: - 5th November 2009, 18:07
  3. Olympic timer Scroll Text
    By Patrick in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 16th December 2006, 14:03
  4. Help with scroll text in Melanie Olympic Timer
    By jorge in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th November 2004, 15:52
  5. Melanie Olympic Timer -> Banner....scroll text...
    By jorge in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th November 2004, 23:11

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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