These are chat archives for esp8266/Arduino
back to serial swap:
I have connected my IR-R/W-Unit to TXD2/RXD2 (IO15/IO13).
#define ITFserial Serial ...... ITFserial.begin(9600); Serial.swap();
thats IMHO all code I need.
BUT. its not working proper. If I disconnect the TX/RX wires, start the ESP and connect the two wires its working. With fully connected IR-unit, the ESP fails to start, and the IR-TX-LED is always ON.
Something, I do not see?
Remark: instead of defining your serial, you could also make it a hardwareserial pointer or reference. That way, you can use your own name and still assign the seriazl interface you like.