- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume you have API's for the Graphic LCD to print a character string.
So you set up a buffer, say 20 characters
unsigned char pString[21] // 20 characters + place for end of string null character '\0'
Then use sprintf() to convert ADC value to string.
Formatting characters for the sprintf() formatting specifier, examples attached.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume you have API's for the Graphic LCD to print a character string.
So you set up a buffer, say 20 characters
unsigned char pString[21] // 20 characters + place for end of string null character '\0'
Then use sprintf() to convert ADC value to string.
Formatting characters for the sprintf() formatting specifier, examples attached.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the function i have is
void GLCD_Text(uint8 left, uint8 top, uint8 font, const char *str);
and i want to print ADCoutput= ADCDelsig_GetResult32( );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So set up buffer as I suggested, look in compiler manual, Keil,
for typing of sprintf(), and you are good to go. 2 lines of code.
Regards, Dana.