|
|
View previous topic :: View next topic |
Author |
Message |
drzxoulis
Joined: 12 Apr 2004 Posts: 14
|
special character printing |
Posted: Thu Apr 15, 2004 2:02 pm |
|
|
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
|
|
Posted: Thu Apr 15, 2004 2:53 pm |
|
|
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
|
|
Posted: Thu Apr 15, 2004 3:05 pm |
|
|
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 |
Posted: Thu Apr 15, 2004 6:44 pm |
|
|
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
|
|
Posted: Thu Apr 15, 2004 7:22 pm |
|
|
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!!! |
|
|
|
|
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
|