January 8, 2013 at 4:25 am
#8916
BHARATH.S.HEGDE
Participant
void lcd_init()
{
lcd_cmd(0x0e); //lcd on, cursor on
delay(2);
lcd_cmd(0x38); //8 bit initialize, 5×7 character font, 16×2 display
delay(2);
lcd_cmd(0x06); //right shift cursor automatically after each character is displayed
delay(2);
lcd_cmd(0x01); //clear lcd
delay(2);
lcd_cmd(0x80);
delay(2);
}
type your display function
again type the command, lcd_cmd(0xC0);
type your display function