8 years ago.

Print value of int to LCD

Hi all, I would like to ask how to print value of int to LCD. For example I want to print to LCD value which is increased by 1 every sec. Thanks.

1 Answer

8 years ago.

I'm not which type of LCD you're using, but hazarding a guess at a HD44780 based one, may I point to towards the cookbook pages for textLCDs

http://mbed.org/cookbook/Text-LCD (I expect this is what you need, if not try one below)


Both of these LCD classes include a printf method which can be used in the same way as the <stdio.h> version. ie, the same as the hello world example but instead of printf("Hello World!") you would use printf("count = %d", counter_int);

Accepted Answer

Thank you.

posted by Zdenek Houf 14 Apr 2013