6 Replies Latest reply on Nov 22, 2010 1:35 AM by jianbo.jiang@honestar.com

    display int on LCD

    alexander.manderla

      Hello,

         

      i want to display a ADC result in decimal on the display. I have found something to display in float but not in decimal.

         

       

         

      char *pResult;            // Pointer used to store the result returned by ftoa function
      int iStatus;                  // Status variable for the ftoa function

         

      LCD_Position(1,5);

         

      pResult = ftoa(ADC_value,&iStatus );
       LCD_PrString(pResult);

         

       

         

       regards Alex