Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 8 months 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
11 years, 8 months 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)
http://mbed.org/cookbook/Text-LCD-Enhanced
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);