2053| 7
|
将数字通过串口发送给电脑 |
5金钱
最佳答案大概代码:
float fResult=123.45;
usart_init(UART1,9600);
printf("%f",fResult);
printf真是太好用啦!
还有一个叫做sprintf的也很方便!
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-8 15:34
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网