AnsweredAssumed Answered

Basic question: String/ Char. output to LCD/ UART

Question asked by L C on May 29, 2017
Latest reply on Jul 20, 2017 by AvaTar



I have success to access LCD(ili9341).

And let it display characters. Note the code for string/char to LCD display still under develop.


In general of C, many case use "printf" for output.

Q1) How can I to use "printf"? e.g. include stdio.h and then ....?

Sorry I am beginner of C, please give me some information/guild to lean,.

In AVR, they have something to transfer printf string stream to specific LCD driver.


static FILE mydata = FDEV_SETUP_STREAM(ili9341_putchar_printf, NULL, _FDEV_SETUP_WRITE);//mydata declaration and converting it into stream


Q2) How to manage printf for different kind of output such LCD & UART?

In some system, they have LCD for display(in operation) AND using UART communicate with PC for remote/ data logging or trace logging.

If only one "printf", how to operate between different output device.


Please share your comment/ experience to me.