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

special character printing

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



Joined: 12 Apr 2004
Posts: 14

View user's profile Send private message

special character printing
PostPosted: Thu Apr 15, 2004 2:02 pm     Reply with quote

Hi again,
Alittle more help needed.
I am trying to print the degree character after my temp value obtained by my a/d on my lcd.
I know that has to be done with lcd_send_byte("1,223") whhich represents in in the hd4478 lcd driver. The problem is that i don't know how to implement that in my printf which is like that:
Quote:
printf(lcd_putc,"\fPRESSURE:%4.0f mB\nTEMP:%2.1f C",pres,temp);
Anyone has a clue???
Kasper



Joined: 14 Jan 2004
Posts: 88
Location: Aurora, Ontario, Canada

View user's profile Send private message Visit poster's website

PostPosted: Thu Apr 15, 2004 2:53 pm     Reply with quote

would this not do it?
printf(lcd_putc,"\fPRESSURE:%4.0f mB\nTEMP:%2.1%cf C",pres,temp,0xDF);
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Apr 15, 2004 3:05 pm     Reply with quote

Quote:

would this not do it?
printf(lcd_putc,"\fPRESSURE:%4.0f mB\nTEMP:%2.1%cf C",pres,temp,0xDF);


This should work:
Code:


printf(lcd_putc,"\fPRESSURE:%4.0f mB\nTEMP:%2.1f%CC",pres,temp,0xDF);



Humberto
Code
Guest







special character
PostPosted: Thu Apr 15, 2004 6:44 pm     Reply with quote

zak did you get it to work?

if you didnt try this....

Code:

printf(lcd_putc,"\fPRESSURE:%4.0f mB\nTEMP:%2.1f C",pres,temp);
lcd_movexy(10,2);
lcd_send_byte(0,12);
lcd_send_byte(1,223);


good luck
drzxoulis



Joined: 12 Apr 2004
Posts: 14

View user's profile Send private message

PostPosted: Thu Apr 15, 2004 7:22 pm     Reply with quote

Thanks once more for your help!!!!!!!!!
The help you get in the site is the best support you could always think of!!!
Thank you again!!!
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