如何使用 STM32F429I-DISC1 和 PlatformIO 在 mbed 中使用 printf
在 PlatformIO 中,你可以直接使用 printf,无需为 STM32F429-DISC1 发现板进行任何特殊配置:
mbed_printf_example.c
#include <mbed.h>
int main() {
while(1) {
printf("Hello world\n");
wait(0.5);
}
}此程序将每秒打印两次 Hello world。你可以使用 PlatformIO 的 Monitor 功能查看输出。
Check out similar posts by category:
Mbed
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow