Go Down

Topic: SoftwareSerial: isListening() swopped pins in example (Read 764 times) previous topic - next topic

andrew_from_pretoria

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);"

Go Up