#include"LCD.h"
void setup() {
volatile char FL = 0xc0,str[]="welcome",size=7; // word and size
volatile char mode=0,line1=1,line2=2;
init_port();
lcd_Display_Mode(mode); // 8 bit mode =0 or 4 bit mode =1
Display_ON_Cursor_off(); // display on cursor off
display_clear(); //clear lcd data
AutoDecrement(); //auto increment
while (1)
{
DLP_right_To_left(str,size,line1);// displaying " Welcome from left to right"
DLP_left_To_right(str,size,line2);
DLP_right_To_left(str,size,line2);
DLP_left_To_right(str,size,line1);
}
}
void loop() {
}