Joined: 14 Feb 2007 Posts: 46 Location: Greece & Cyprus
Need to show symbol "°" of Celsius degree on the
Posted: Sun Mar 02, 2008 11:53 am
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
Posted: Sun Mar 02, 2008 1:33 pm
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
Re: Need to show symbol "°" of Celsius degree on
Posted: Sun Mar 02, 2008 1:39 pm
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 thanks for the love
code work
Thanks _________________ ---- GREECE ----
Zer0flag Guest
Re: Need to show symbol "°" of Celsius degree on
Posted: Sun Mar 02, 2008 1:47 pm
Great! I know how important it is to keep temperature low in Greece, especially in the summer ;)
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