#include"LCD.h"
void setup() {
  volatile char str1[]="welcome to",size1=12,str2[]="ECEN academy",size2=12; // word and size
  volatile char mode=0,line1=1,line2=2,mid=0x82;
  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
  AutoIncrement(); //auto increment
   /*
   Displaying “Welcome to" on line1 in middle and 
 “ECEN Academy” on line2. Rotate line2 right to left 
 continuously
   */
   while(1)
   {
  DLP_str_right_To_left(str1,size1,str2,size2,line2,mid);// str = first address,size= String length
}
}
void loop() {
}