当使用同一个硬件串口时,UART和Display的API好像不能同时存在,可以给我一个明确的回答吗?我需要用串口接收数据,但是想显示字符串,用不了占位符的话,转换数据就很麻烦,有其他方式吗?
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.
CC1310只有一个UART,如果您使用Display驱动程序通过UART进行写入,则无法将UART用于其他任何用途,除非您在打开和关闭Display驱动程序和UART驱动程序之间进行切换。
最简单的方法是使用UART驱动程序在UART上读写,就像SDK中的uartecho示例一样。