Pages: [1]   Go Down
Author Topic: SoftwareSerial: isListening() swopped pins in example  (Read 732 times)
0 Members and 1 Guest are viewing this topic.
Pretoria, South Africa
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

At http://arduino.cc/en/Reference/SoftwareSerialIsListening

the example seems to have Rx and Tx swopped:

---quote---

Example

#include <SoftwareSerial.h>

// software serial : TX = digital pin 2, RX = digital pin 3
SoftwareSerial portOne(2, 3);

--- end of quote ---
 
it should rather state
"// software serial : RX = digital pin 2, TX = digital pin 3
SoftwareSerial portOne(2, 3);"
Logged

Pages: [1]   Go Up
Jump to: