Displaying an Integer on LCD

Question: 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);