faridh3
Joined: 17 Mar 2014 Posts: 21
|
LCD sentence scroll left HELP / SOLVED |
Posted: Wed Apr 02, 2014 12:04 am |
|
|
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 |
|