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

Creating special fonts on character LCD with printf

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



Joined: 24 Feb 2004
Posts: 11

View user's profile Send private message

Creating special fonts on character LCD with printf
PostPosted: Wed Nov 19, 2008 8:47 am     Reply with quote

I'm using a character LCD and would like to display an upward and downward arrow font on the LCD to indicate press the up or down key. In reviewing the LCD manufacturers document it appears I need to send 0x18 for the up arrow font and 0x19 for the down arrow font. I typically have just used the printf function to send ASCII text to the display. Could someone explain what I need to do to send these commands to the display to generate these fonts.

Thank you,
Wayne_



Joined: 10 Oct 2007
Posts: 681

View user's profile Send private message

PostPosted: Wed Nov 19, 2008 9:16 am     Reply with quote

You have several options, the 2 I would use are

1) printf("\x17"); and printf("\x18);

2) printf("%c", 0x17); and printf("%c", 0x18);
Guest








PostPosted: Wed Nov 19, 2008 9:42 am     Reply with quote

Thank you,

That takes care of it.
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