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

Need to show symbol "°" of Celsius degree on the

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



Joined: 14 Feb 2007
Posts: 46
Location: Greece & Cyprus

View user's profile Send private message

Need to show symbol "°" of Celsius degree on the
PostPosted: Sun Mar 02, 2008 11:53 am     Reply with quote

Hi
I need to show symbol of degree on the lcd 2x16 HD44780

When i try to show the follwing table on LCD :
Code:

STATIC CONST char string[12]={"Temp: 15°C"}

Then on LCD i get:
Code:

Temp: 15-C   // instead of "Temp: 15°C"


I think there must be a way to put the degree symbol inside the TABLE as a character.
From data sheets character 223 is symbol of degree "°" but how i'm i gone put it inside the table




When trying to show on LCD 2x16 with printf the temp Work OK!!! and shows 24.1°C
Code:

printf(lcd_putc,"\f%4.1f %cC",temp,223);
              //character 223 is symbol of degree "°"

_________________
---- GREECE ----
Zer0flag
Guest







Re: Need to show symbol "°" of Celsius degree on
PostPosted: Sun Mar 02, 2008 1:33 pm     Reply with quote

Hi!

Try
\xDF
instead of °

From Bulgaria with love ;)
Zer0flag

E_KARVELAs wrote:
I need to show symbol of degree on the lcd 2x16 HD44780
E_KARVELAs



Joined: 14 Feb 2007
Posts: 46
Location: Greece & Cyprus

View user's profile Send private message

Re: Need to show symbol "°" of Celsius degree on
PostPosted: Sun Mar 02, 2008 1:39 pm     Reply with quote

Zer0flag wrote:
Hi!

Try
\xDF
instead of °

From Bulgaria with love ;)
Zer0flag

E_KARVELAs wrote:
I need to show symbol of degree on the lcd 2x16 HD44780

Xaxaxaxax Very Happy thanks for the love
code work Cool
Thanks
_________________
---- GREECE ----
Zer0flag
Guest







Re: Need to show symbol "°" of Celsius degree on
PostPosted: Sun Mar 02, 2008 1:47 pm     Reply with quote

Great! I know how important it is to keep temperature low in Greece, especially in the summer ;)

E_KARVELAs wrote:
Xaxaxaxax Very Happy thanks for the love
code work Cool
Thanks
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