摘要: sprintf函数太大,在STM8上面根本不敢用,动不动就.text overflow。为了将采集的数值通过串口上传到计算机,只能自己写了一个浮点数转换成字符串的函数: #include #include static char table[]={'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};void num2char(char *st... 阅读全文
posted @ 2014-07-02 13:34 Craftor 阅读(23328) 评论(0) 推荐(0) 编辑