Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经成功地使用SoftwareSerial将 AT 命令传递给 HM-10 模块。但是,我想使用硬件 Rx/Tx 引脚(数字引脚 0/1)来做同样的事情。是否有任何图书馆可用于此目的?或者,我该如何实现?
SoftwareSerial
您可以使用硬件串行,但我建议您不要。 Rx/Tx 引脚与 USB 转串口共享,因此您不能在不断开 HM10 的情况下使用串口监视器或上传到 Arduino。