CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

how to erase a line of LCD ? [resolved]

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Salenko



Joined: 08 Sep 2008
Posts: 84

View user's profile Send private message

how to erase a line of LCD ? [resolved]
PostPosted: Fri Apr 24, 2009 1:44 pm     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 24, 2009 2:15 pm     Reply with quote

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=34246
Salenko



Joined: 08 Sep 2008
Posts: 84

View user's profile Send private message

PostPosted: Fri Apr 24, 2009 3:05 pm     Reply with quote

Thank you Mr PCM for your quick help . Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group