You are here

display int on LCD | Cypress Semiconductor

display int on LCD

Summary: 6 Replies, Latest post by jjb on 22 Nov 2010 01:35 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
alexandermanderla's picture
User
1 post

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

 

user_11685479's picture
User
41 posts

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

user_11685479's picture
User
41 posts

Check out this KB too.

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

 

Deepika's picture
User
4 posts
Deepika's picture
User
4 posts
Deepika's picture
User
4 posts

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

jjb
jjb's picture
User
2 posts

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

Log in to post new comments.