i am unable to display numbers in glcd example like digit 13.By using below code . int32_t GLCD_DrawChar(uint32_t x, uint32_t y, int32_t ch);
int x=50 + (acc.x * 25/1000); int y=50 + (acc.y * 25/1000); int z=50 + (acc.z * 25/1000);
GLCD_DrawChar (5, 2*24, x); GLCD_DrawChar (0, 3*24, y); GLCD_DrawChar (1, 4*24, z);
extern int32_tGLCD_DrawString(uint32_t x, uint32_t y, const char *str);
i also tried GLCD_DrawString but unble to display numbers.
Hope u reply soon, Thanks and regards, krishna
Don't you understand the difference between characters and numbers, and strings composed of multiple characters?
{ char str[16]; sprintf(str, "%d", x); GLCD_DrawString(5, 2*24, str); }