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

16*2 LCD cursor problem

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



Joined: 25 Jan 2012
Posts: 13

View user's profile Send private message

16*2 LCD cursor problem
PostPosted: Thu Apr 05, 2012 10:53 am     Reply with quote

I have to design a security code lock and in the code entering part i have to view and shift the lcd cursor. I'm using flex_lcd driver and I can't understand how to use the cursor. Please somebody help me with the cursor.

The problem is I don't know to view the cursor and shift the cursor.
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Apr 05, 2012 11:03 am     Reply with quote

You'll have to get and read the datasheet for the LCD that you're using. Most follow a 'standard', but we don't know what you're using. If you post the LCD make/model then we can help you better.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Thu Apr 05, 2012 11:12 am     Reply with quote

Read the CCS forum guidelines. You give us very little to go on.

You're possibly looking for the command lcd_gotoxy(x,y) which manipulates the cursor position.

Mike
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 05, 2012 11:24 am     Reply with quote

Quote:

The problem is I don't know to view the cursor and shift the cursor.

To move the cursor, use the lcd_gotoxy() function. Documentation on it:
// lcd_gotoxy(x,y) - Sets the write position on LCD (upper left is 1,1)

There is a function in the Code Library to turn the hardware LCD cursor
on/off and to turn cursor blinking on/off. It works with the Flex driver:
http://www.ccsinfo.com/forum/viewtopic.php?t=24668

Example of how to use it:
http://www.ccsinfo.com/forum/viewtopic.php?t=37756&start=3
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