CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LCD sentence scroll left HELP / SOLVED

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
faridh3



Joined: 17 Mar 2014
Posts: 21

View user's profile Send private message Send e-mail

LCD sentence scroll left HELP / SOLVED
PostPosted: Wed Apr 02, 2014 12:04 am     Reply with quote

Hello,
I need to make a sentence scroll left using a for loop and a table of characters ...
I did it but in a different way.
Can anyone help me please to do it the way i need ?
This is my code:
Code:

      printf(lcd_putc, "\n                ");
      delay_ms(75);
      printf(lcd_putc, "\n               W");
      delay_ms(75);
      printf(lcd_putc, "\n              WE");
      delay_ms(75);
      printf(lcd_putc, "\n             WEL");
      delay_ms(75);
      printf(lcd_putc, "\n            WELC");
      delay_ms(75);
      printf(lcd_putc, "\n           WELCO");
      delay_ms(75);
      printf(lcd_putc, "\n          WELCOM");
      delay_ms(75);
      printf(lcd_putc, "\n         WELCOME");
      delay_ms(75);
      printf(lcd_putc, "\n        WELCOME ");
      delay_ms(75);
      printf(lcd_putc, "\n       WELCOME T");
      delay_ms(75);
      printf(lcd_putc, "\n      WELCOME TO");
      delay_ms(75);
      printf(lcd_putc, "\n     WELCOME TO ");
      delay_ms(75);
      printf(lcd_putc, "\n    WELCOME TO P");
      delay_ms(75);
      printf(lcd_putc, "\n   WELCOME TO PR");
      delay_ms(75);
      printf(lcd_putc, "\n  WELCOME TO PRO");
      delay_ms(75);
      printf(lcd_putc, "\n WELCOME TO PROJ");
      delay_ms(75);
      printf(lcd_putc, "\nWELCOME TO PROJE");
      delay_ms(75);
      printf(lcd_putc, "\nELCOME TO PROJEC");
      delay_ms(75);
      printf(lcd_putc, "\nLCOME TO PROJECT");
      delay_ms(75);
      printf(lcd_putc, "\nCOME TO PROJECT ");
      delay_ms(75);
      printf(lcd_putc, "\nOME TO PROJECT I");
      delay_ms(75);
      printf(lcd_putc, "\nME TO PROJECT IN");
      delay_ms(75);
      printf(lcd_putc, "\nE TO PROJECT INC");
      delay_ms(75);
      printf(lcd_putc, "\n TO PROJECT INCI");
      delay_ms(75);
      printf(lcd_putc, "\nTO PROJECT INCI ");
      delay_ms(75);
      printf(lcd_putc, "\nO PROJECT INCI  ");
      delay_ms(75);
      printf(lcd_putc, "\n PROJECT INCI   ");
      delay_ms(75);
      printf(lcd_putc, "\nPROJECT INCI    ");
      delay_ms(75);
      printf(lcd_putc, "\nROJECT INCI     ");
      delay_ms(75);
      printf(lcd_putc, "\nOJECT INCI      ");
      delay_ms(75);
      printf(lcd_putc, "\nJECT INCI       ");
      delay_ms(75);
      printf(lcd_putc, "\nECT INCI        ");
      delay_ms(75);
      printf(lcd_putc, "\nCT INCI         ");
      delay_ms(75);
      printf(lcd_putc, "\nT INCI          ");
      delay_ms(75);
      printf(lcd_putc, "\n INCI           ");
      delay_ms(75);
      printf(lcd_putc, "\nINCI            ");
      delay_ms(75);
      printf(lcd_putc, "\nNCI             ");
      delay_ms(75);
      printf(lcd_putc, "\nCI              ");
      delay_ms(75);
      printf(lcd_putc, "\nI               ");
      delay_ms(75);
      printf(lcd_putc, "\n                ");

Thank you.
Farid.


Last edited by faridh3 on Wed Apr 02, 2014 12:38 am; edited 1 time in total
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 02, 2014 12:17 am     Reply with quote

Use the forum's search page.
http://www.ccsinfo.com/forum/search.php

Search for this:
Quote:
side scrolling lcd

Make sure that the option below is selected:
Quote:
x Search for all terms

Then click the Search button.
faridh3



Joined: 17 Mar 2014
Posts: 21

View user's profile Send private message Send e-mail

PostPosted: Wed Apr 02, 2014 12:37 am     Reply with quote

Thanks for your help.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group