串口不够用求newsoftserial地址啊
各位大神各给newsoftserial,或者教下我怎么模拟串口,求大神帮助啊{:soso_e183:} 跟 serial 一樣吧, 分別只在於要先設定 RX / TX 用到的接口.#include <NewSoftSerial.h>NewSoftSerial mySerial(10, 11); // RX, TX之後, 把原來 Serial 的 改成 mySerial 就可以了.
當然, 由於是軟串口, 速度上不要太快.如果波特率不是固定的話, 多做一點測試, 調教理想的波特率.
Super169 发表于 2014-9-19 09:13 static/image/common/back.gif
跟 serial 一樣吧, 分別只在於要先設定 RX / TX 用到的接口.之後, 把原來 Serial 的 改成 mySerial 就可以了 ...
感谢你的示例指教,但是我现在还没下载到这个库文件。如果方便的话麻烦你发一个给我咯,[email protected],谢谢啦 wuchao1235 发表于 2014-9-19 11:11 static/image/common/back.gif
感谢你的示例指教,但是我现在还没下载到这个库文件。如果方便的话麻烦你发一个给我咯,,谢谢啦
The version of SoftwareSerial included in 1.0 and later is based on the NewSoftSerial library by Mikal Hart.
現在已沒需要下載 NewSoftSerial , 用原裝的 SoftwareSerial 已經可以了.
Super169 发表于 2014-9-19 11:57 static/image/common/back.gif
現在已沒需要下載 NewSoftSerial , 用原裝的 SoftwareSerial 已經可以了.
哦 是的 才发现本来就带了这个库文件 谢谢啊 原裝的 SoftwareSerial 在那个位置啊?感谢,楼主使用了吗
页:
[1]