display int on LCD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
6 Replies
Anonymous
Not applicable

You can use itoa or ltoa functions for converting integer or long into ascii and displaying it on LCD.  Check out the below KB article.

   

http://www.cypress.com/?rID=34785

   

Best Regards,
Ganesh
PSoC Hacker

   
0 Likes
Anonymous
Not applicable

Check out this KB too.

   

http://www.cypress.com/?rID=34783

0 Likes
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

hi,

   

   i want to know how to and in which order enter pixel in pixel mapping table. i have seen one example of lcd direct drive basis.

   

but i have confused how to select The pin connection for segment and commons in the LCD glass.suppose in this example segment 4B,4C,4DP is connected to pin no. 4. in which order pin no. is selected for the given segment.
 right now i am using psos-3 LCD segment drive evalution kit CY8CKIT-006

0 Likes
Anonymous
Not applicable

Maybe you can use this function:void LCD_Char_1_PrintDecUint16(uint16 value);

0 Likes