Let the future tell the truth and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I really worked, is mine. (Nikola Tesla)

11/09/2010


●Displaying a Scrolling Script from Right to Left on 2x16 LCD

Here is the program written by using CCS C.


#include <16f628.h>
#fuses NOPROTECT, NOWDT, NOLVP, NOMCLR, INTRC_IO
#use delay(clock=4M)
#include

void main()
{

int a=32,x=16;

lcd_init(); //Must be called before any other function

for( ; ;x--,a--){

lcd_gotoxy(x,1);
lcd_putc("Sezgin Secil");
delay_ms(200);
lcd_putc("\f"); //To clear the display
if(a==0){ a=32,x=16; }

}
}


Note: lcd_gotoxy and lcd_putc are the functions that are presented by lcd.c file.

ShareThis