Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
while(True): if uart.any(): # 更新串口接收数据 x = uart.readchar() #接收读取的字符串 print(x) if x == 0x01:
单片机给openmv发送一次0x01后,每次循环都会读取到串口信息。有没有什么办法清除串口缓冲区?
读完之后就没有了,循环接收估计是你单片机循环发送了。