Hi,
I'm using a LCD 4x20, Is there a way to use the function printf in my LCD?
What should I do? or What do I need to modify?
Another solution is to use asprintf or sprintf to format and place the output into a character string buffer. You can then send the buffer to the LCD.
Yes, I used sprintf and it was the solution.
Hi Ivan,
Please check this link Character LCD with 4 Lines | MCU on Eclipse
I am using this for 4X20 LCD and it is working fine for me. One modification in hardware is required, as in my case LCD required 5V supply but the Kinetis works on 3.3V so for interfacing This LCD I had to use a voltage level shifter in between. The rest you can see on the tutorial. If you are using Processor expert, there is a PE component for that i.e LCDHTA.
Best Regards
Amit Kumar
The IAR-toolchain built-in printf function funnels thru a 'write' byte-output function, so if you can make a driver that takes that ASCII and creates the proper display and functions on your display, then off you go.
Hi, Ivan
What is your LCD interface? Is it UART? If not, I am afraid that you cannot use function printf in your project.
Best Regards
Paul