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循环中,每次循环开始时用uart.readchar()读一次串口,发现加入这一步后出现程序运行卡顿、帧率大幅下降的现象。请问这是为什么,以及有没有既能读串口又能不影响程序正常快速运行的方法?
if uart.any(): uart.readchar()
按照此方法可以解决问题,非常感谢。