sbit LCD_RS at RC2_bit;
sbit LCD_EN at RD2_bit;
sbit LCD_D4 at RD0_bit;
sbit LCD_D5 at RC5_bit;
sbit LCD_D6 at RC0_bit;
sbit LCD_D7 at RC1_bit;
sbit LCD_RS_Direction at TRISC2_bit;
sbit LCD_EN_Direction at TRISD2_bit;
sbit LCD_D4_Direction at TRISD0_bit;
sbit LCD_D5_Direction at TRISC5_bit;
sbit LCD_D6_Direction at TRISC0_bit;
sbit LCD_D7_Direction at TRISC1_bit;
void main() {
TRISB=0b00000000;
Delay_ms(100);
Delay_ms(100);
Delay_ms(100);
Delay_ms(100);
Delay_ms(100);
Delay_ms(100);
Lcd_Init(); // Initialize LCD
Delay_ms(100);
Delay_ms(100);
Delay_ms(100);
Lcd_Cmd(_LCD_CLEAR); // Clear display
Delay_ms(100);
PORTB=0b11111111;
while(1)
{
Lcd_Out(1,3,"Helllooooo");
PORTB=0b00000000;
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Delay_ms(100);
Delay_ms(100); Delay_ms(100);
PORTB=0b11111111;
Delay_ms(100); Delay_ms(100);
Delay_ms(100);
}
}