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

I want to insert the degree symbol into the GLCD 128X64

 
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

I want to insert the degree symbol into the GLCD 128X64
PostPosted: Fri Feb 29, 2008 6:03 pm     Reply with quote

HI i want to show the degree symbol into to the GLCD how can this be done:???

Code:

                                        //example code
char   string[9];
float TempVal;                         //store the value of temp
sprintf(string,"%3.1foC",TempVal)      //This code will show 24.4oC
                                       //I need to show  "24.4°C"     
                                       //instead of "24.4oC"

Thanks
_________________
---- GREECE ----
JulsPower



Joined: 18 Feb 2008
Posts: 11

View user's profile Send private message

PostPosted: Fri Feb 29, 2008 8:54 pm     Reply with quote

draw it
I dont know with the glcd but with the hd44780 you can write into the CG ram

check the manual you can probably do the same
andredurao



Joined: 24 Apr 2006
Posts: 15

View user's profile Send private message MSN Messenger

PostPosted: Sat Mar 01, 2008 5:56 am     Reply with quote

You'll have to draw it..
increase one line in const BYTE TEXT2
with the followin values....

0b00000000,
0b00011100,
0b00100010,
0b00100010,
0b00011100

and print this char (#127, or you may change some symbol
that you're not using (like '^' ...just a example)
E_KARVELAs



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

View user's profile Send private message

PostPosted: Sat Mar 01, 2008 8:22 am     Reply with quote

andredurao wrote:
You'll have to draw it..
increase one line in const BYTE TEXT2
with the followin values....

0b00000000,
0b00011100,
0b00100010,
0b00100010,
0b00011100

and print this char (#127, or you may change some symbol
that you're not using (like '^' ...just a example)

hi
i changed the driver code for "^" to show the degree symbol works just file. Laughing thanks
_________________
---- GREECE ----
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