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).
如题,大佬们谈谈,可以用串口中断吗?相关函数小弟实在未曾找到。如有请告知 谢谢谢!
没有串口中断,
准确的说,是串口中断已经自动使用了,在接收到数据之后,自动把数据放到缓冲区,使用uart.any()可以看到缓冲区。
data=uart.read(n),把缓冲区的n个数据读出来。