View previous topic :: View next topic |
Author |
Message |
The Puma
Joined: 23 Apr 2004 Posts: 227 Location: The Netherlands
|
printf how to compact this? |
Posted: Sat Sep 01, 2007 8:15 am |
|
|
Code: | lcd_gotoxy(1,2); printf(lcd_putc,"Ch0: "); printf(lcd_putc,volt_str); printf(lcd_putc,"v"); printf(lcd_putc," %4LX",data); printf(lcd_putc,"h"); |
How can i rid off the serveral printf commands, and use only one printf command? |
|
![](templates/subSilver/images/spacer.gif) |
Miniman
Joined: 30 Apr 2007 Posts: 44
|
|
Posted: Sat Sep 01, 2007 8:22 am |
|
|
Code: |
lcd_gotoxy(1,2);
printf(lcd_putc,"Ch0: %sv %4LXh,volt_str,data);
|
guess this should do it
Best regards
miniman |
|
![](templates/subSilver/images/spacer.gif) |
The Puma
Joined: 23 Apr 2004 Posts: 227 Location: The Netherlands
|
|
Posted: Sat Sep 01, 2007 9:19 am |
|
|
Ok, thx
It works |
|
![](templates/subSilver/images/spacer.gif) |
|