3953| 7
|
float转unsigned char *类型怎么转换 |
1金钱
最佳答案给你个显示小数的函数:
void LCD_ShowFloat(u16 x, u16 y, u8 size, float num, u8 Int, u8 Float)
{
char str[25];
sprintf(str, "%f", num);
LCD_ShowString(x, y, 25 * 8, 16, size, (u8 *)str);
}
| ||
| ||
| ||
| ||
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-9 02:11
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网