If i use multiple filedevices ie. multiple calls to fdevopen()and store the file pointer returned by the function call. Like this:
FILE * pSerial = fdevopen(Serial::_putc, Serial::_getc);
FILE * pLCD = fdevopen(WireLCD::_putc, NULL);
How do I go about calling printf() for both devices?
The approach I tried, (by making my own printf function does not allow the both devices to peacefully coexist.
Any help would be appreciated.