View previous topic :: View next topic |
Author |
Message |
Eugeneo
Joined: 30 Aug 2005 Posts: 155 Location: Calgary, AB
|
Printf(external_putc,"test") |
Posted: Sun Feb 05, 2006 1:36 am |
|
|
Just got a thought.
Has anybody tried to re-direct the printf to do this?
This way you can shortcut the sprintf to send character by character to "external_putc"
Printf(external_putc,"test")
void external_putc( char c) {
switch (c) {
case '\c' :clear_screen(0);
default : external_byte(1,c); break;
}
} |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Feb 05, 2006 1:49 am |
|
|
I'm not sure what you mean by 'external_putc', but yes, we are
aware of the re-direction feature of printf. One common use for
it is to redirect output to the lcd_putc() function. |
|
|
Eugeneo
Joined: 30 Aug 2005 Posts: 155 Location: Calgary, AB
|
|
Posted: Sun Feb 05, 2006 3:13 am |
|
|
Never mind. Stupid me. Must have done a little too much programming today |
|
|
|