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

flex_lcd and setting cursor

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



Joined: 09 Jul 2004
Posts: 70

View user's profile Send private message

flex_lcd and setting cursor
PostPosted: Tue Mar 25, 2008 1:28 pm     Reply with quote

I am putting together code to have a blinking cursor on my screen. from reading other posts on this forum I have found that i can control the position of the cursor by using the lcd_gotoxy() function. Also, it looks like if i change the array in flex_lcd to
int8 const LCD_INIT_STRING[4] =
{
0x20 | (lcd_type << 2), // Func set: 4-bit, 2 lines, 5x8 dots
0xf, // Display on was 0xc
1, // Clear display
6 // Increment cursor
};
the cursor will blink. However, now the cursor is always on at the end of the second line of my lcd display. Is there something else i should do to turn the blinking cursor on only when i want it?
Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 25, 2008 1:45 pm     Reply with quote

Quote:

Is there something else i should do to turn the blinking cursor on only when i want it?

See this post in the Code library for a routine to control the lcd cursor:
http://www.ccsinfo.com/forum/viewtopic.php?t=24668
nmeyer



Joined: 09 Jul 2004
Posts: 70

View user's profile Send private message

PostPosted: Tue Mar 25, 2008 2:49 pm     Reply with quote

Thanks. I saw this in my previous searching but i was not sure that is was what i wanted or exactly how to use it. I played with it a bit and i have it working.
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