You are here

Displaying an Integer on LCD | Cypress Semiconductor

Support & Community

Displaying an Integer on LCD

Last Updated: February 27, 2011

How do I display an integer on the LCD using the PSoC C-compiler?


An integer can be converted to ascii using the itoa function and then displayed on an LCD using the LCD_PrString function.  An example code snippet is shown below.


void main(void)
int myInt = 10;
   char OutputString[7];  // String to hold the ascii result

   itoa(OutputString, ADCResult, myInt);


Provide feedback on this article

Browse KB By Product

Browse KB by Type