gpt4 book ai didi

python - pySerial 在运行时中断什么引脚?

转载 作者:太空宇宙 更新时间:2023-11-03 12:09:54 24 4
gpt4 key购买 nike

pySerial是一种串行通信技术,一旦有一些数据要提供给 Arduino 板,它是否会中断 Arduino 板上的引脚?

它中断哪个引脚来运行 ISR ?还是使用轮询的方式?我对这个概念的理解正确吗?

最佳答案

pySerial 提供对 UART 硬件的访问。读/写数据不涉及任何中断。您只需调用 read() 和 write()。 read() 将阻塞直到数据可用,并有一个可选的超时时间。

关于python - pySerial 在运行时中断什么引脚?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7293525/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com