Salenko
Joined: 08 Sep 2008 Posts: 84
|
how to erase a line of LCD ? [resolved] |
Posted: Fri Apr 24, 2009 1:44 pm |
|
|
Hi there,
I'm using the flex_lcd420 driver and I'd like to erase one selected line from the four lines in my 4x20 HD44780 LCD , I'm wondering about what I should put in lcd_putc().
I have the following function in the lcd driver :
Code: |
void lcd_putc(char c)
{
switch(c)
{
case '\f':
lcd_send_byte(0,1);
lcd_line = 1;
delay_ms(2);
break;
case '\n':
lcd_gotoxy(1, ++lcd_line);
break;
case '\b':
lcd_send_byte(0,0x10);
break;
case '\&':
lcd_send_byte(0,0x0F);
break;
default:
lcd_send_byte(1,c);
break;
}
}
|
any suggestion ?
thanks in adance.
Last edited by Salenko on Fri Apr 24, 2009 3:07 pm; edited 1 time in total |
|