|
|
发表于 2015-2-3 15:52:44
|
显示全部楼层
請說清楚你做過了什麼, 如何判斷是 只是發送, 不能接收?
有嘗試用其他 非 UART 的接腳作 SoftwareSerial 測試嗎?
使用庫的時候, 請先看看人家怎麼說 (http://arduino.cc/en/Reference/SoftwareSerial) :
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
如果你堅持要用 硬串口的 I/O 作 軟串口, 也只有 14,15 有可能成功, 其他不成功也是正常的, 人家早說明了.
|
|