-->
Page 1 of 1

Serial. Swap() UART1

PostPosted: Wed Sep 26, 2018 4:30 am
by Iksi
Hello,
I would like to swap the TX pin of UART1 to GPIO1? And Swap the UART0 to GPIO13 and 15.
I want to use Hardware serial for an NEXTION display and then use UART1 for Debug. If I could swap it as I mentioned I would be able to use the normal USB Connector of my wemos d1 mini for debugging.
With the actual library this is not possible, I think. I there any reason why it should not work if implemented in the lib?

Re: Serial. Swap() UART1

PostPosted: Thu Mar 21, 2019 4:17 pm
by d-a-v
You can swap, use hardwareserial on 13+15, and use softwareserial for debugging with the usb-uart converter.

https://github.com/esp8266/Arduino/blob ... Stress.ino

Re: Serial. Swap() UART1

PostPosted: Fri Mar 22, 2019 1:49 am
by schufti
or - to keep it easy - just use sw-serial for nextion