Page 1 of 1

ESP32 Serial2 Uart TX pin problem

Posted: Thu Aug 19, 2021 3:33 am
by vishal.borle
Hello to all,

#define RX2_PIN 25
#define TX2_PIN 26

I have declair Serial2.begin(9600, SERIAL_8N1, RX2_PIN, TX2_PIN); and need to disable UART 2. For this used Serial2.end();

After that but TX2_PIN not working as input. Is any configuration need to be done when disabled UART2 for working RX and TX pin as normally input.

Please help me.

Re: ESP32 Serial2 Uart TX pin problem

Posted: Sat Sep 04, 2021 10:59 am
by rodmcm
If you are going back to using 25 and 26 as inputs then you probably need to assign them with pinmode(25,INPUT_PULLUP) or similar