2,643
社区成员
发帖
与我相关
我的任务
分享
initaux( AUX1 , BPS115200 , DB8 |STOP1 | NP ); //初始化串口
while (strlen (WriteBuf) == 0)
{
portread (AUX1, 200, WriteBuf, 0); //读取串口内容
sleep(0.1);
}
ShowMessage("debug!", WriteBuf, 0);
clrportbuf(AUX1, 1); //清除缓冲区