Displaying an Integer on LCD

Version 1
    Question: How do I display an integer on the LCD using the PSoC C-compiler?

     

    Answer:

    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.

    #include

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

       itoa(OutputString, ADCResult, myInt);
       LCD_Position(0,0);
       LCD_PrString(OutputString);

    }