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 CCS Technical Support

LCD - blink a line ? (solved)

 
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

LCD - blink a line ? (solved)
PostPosted: Sun Dec 20, 2009 11:33 am     Reply with quote

Hi there,

is this possible to make an entire line blinking on LCD ?

I use flex_lcd420 driver, what should I add to my code then ?


Code:
lcd_putc(" LINE 1 ")



thanks.


Last edited by Salenko on Mon Dec 21, 2009 2:38 am; edited 1 time in total
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Dec 20, 2009 2:36 pm     Reply with quote

There is no "per character" blink attribute. You have to blink it with code.
Try this program. This is for a 16x2 LCD.
Code:

#include <16F877.H>
#fuses XT, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)

#include "flex_lcd.c"

//======================================
void main()
{
char line1[17] = {"Hello World"};
char line2[17] = {"This is line 2"};
char blank_line[17] = {"                "};

lcd_init();

// Displays lines 1 and 2.
printf(lcd_putc, "%s", line1);
lcd_gotoxy(1,2);
printf(lcd_putc, "%s", line2);

while(1)
  {
   // Display line1 text for 1/2 second.
   lcd_gotoxy(1,1);
   printf(lcd_putc, "%s", line1);
   delay_ms(500);
   
   // Blank line1 for 1/2 second.
   lcd_gotoxy(1,1);
   printf(lcd_putc, "%s", blank_line);
   delay_ms(500);
  }
}
Salenko



Joined: 08 Sep 2008
Posts: 84

View user's profile Send private message

PostPosted: Mon Dec 21, 2009 2:37 am     Reply with quote

Thank you Mr PCM. Wink
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