// LCD module baðlantýlarý
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
// End LCD module baðlantýlarý
char i; // Loop variable
void Move_Delay() { // Function used for text moving
Delay_ms(50); // You can change the moving speed here
}
void main(){
ADCON1 |= 0x0F;
Lcd_Init();
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 16, "WELCOME TO");
Lcd_Out(2, 16, "MY PROJECT");
while(1) { // Endless loop
for(i=0; i<15; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Delay_ms(500);
while(1) { // Endless loop
for(i=0; i<15; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, "PREPARED BY");
Lcd_Out(2, 1, "SCIENTIST GROUP");
Delay_ms(1000);
// Moving text
for(i=0; i<17; i++) { // Move text to the right 4 times
Lcd_Cmd(_LCD_SHIFT_RIGHT);
Move_Delay();
}
Delay_ms(50);
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, "SAJID SALEEM");
Lcd_Out(2, 1, "NADEEM SULEMAN");
Delay_ms(300);
LCD_CMD(_LCD_TURN_OFF);
Delay_ms(100);
LCD_CMD(_LCD_TURN_ON);
Delay_ms(100);
LCD_CMD(_LCD_TURN_OFF);
Delay_ms(100);
LCD_CMD(_LCD_TURN_OFF);
Delay_ms(100);
LCD_CMD(_LCD_TURN_ON);
Delay_ms(100);
LCD_CMD(_LCD_TURN_OFF);
Delay_ms(100);
LCD_CMD(_LCD_TURN_ON);
Delay_ms(2000);
// Moving text
for(i=0; i<16; i++) { // Move text to the right 4 times
Lcd_Cmd(_LCD_SHIFT_RIGHT);
Move_Delay();
}
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 16, "SPECIAL THANX TO...");
while(1) { // Endless loop
for(i=0; i<34; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Lcd_Cmd(_LCD_CLEAR);
Lcd_out(1,16, "Junaid Zaheer &");
Lcd_out(2,16, "MY ALL TEACHERS");
while(1) { // Endless loop
for(i=0; i<15; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Delay_ms(2000);
while(1) { // Endless loop
for(i=0; i<15; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Lcd_Cmd(_LCD_CLEAR);
Lcd_out(1,1, "THANKS FOR");
Lcd_out(2,1, "WATCHING.......");
Delay_ms(2000);
while(1) { // Endless loop
for(i=0; i<17; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Lcd_Cmd(_LCD_CLEAR);
Lcd_out(1,16, "CODE IS WRITTEN BY.....");
while(1) { // Endless loop
for(i=0; i<35; i++) { // Move text to the left 7 times
Lcd_Cmd(_LCD_SHIFT_LEFT);
Move_Delay();}
Lcd_Cmd(_LCD_CLEAR);
}}}}}} } }