avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] C Escape sequence.


From: Royce Pereira
Subject: [avr-gcc-list] C Escape sequence.
Date: Thu, 25 May 2006 11:29:24 +0530
User-agent: Opera Mail(BETA2)/9.00 (Win32)

Hi,
Sorry for my rusty C, but how does one insert a hex value into a string?
I tried
const char messg[] PROGMEM= "Temp=   \xdfC"; //display temperature in deg 
Centigrade
and
const char messg[] PROGMEM= "Temp=   \xdf\C";

I'm using a 16x2 LCD, where 0xdf is the hex value of the little 'o' degree 
symbol.

The first doesnt work.The second works, but I get a warning.

Thanks,
--Royce
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]