This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/430BOOST-SHARP96:430能否升压 SHARP 96以显示整数?

Guru**** 2239510 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/586800/ccs-430boost-sharp96-can-430-boost-sharp-96-able-to-display-integer

器件型号:430BOOST-SHARP96

工具/软件:Code Composer Studio

我想问430 BOOST-SHARP96是否能够显示整数读数? 我尝试显示 int x = 100、但 显示的是 ACSII d、而不是100。 有人知道我可以做些什么来展示100?

提前感谢您

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    如果有足够的堆可用,则可以使用 sprint(),
    K&R 给出一个示例 itoa():
    http://c-faq.com/lib/itoa.html