ESP32 Serial2 Uart TX pin problem

vishal.borle
Posts: 13
Joined: Thu May 07, 2020 1:32 pm

ESP32 Serial2 Uart TX pin problem

Postby vishal.borle » Thu Aug 19, 2021 3:33 am

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.

rodmcm
Posts: 65
Joined: Sat Sep 02, 2017 3:31 am

Re: ESP32 Serial2 Uart TX pin problem

Postby rodmcm » Sat Sep 04, 2021 10:59 am

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

Who is online

Users browsing this forum: No registered users and 29 guests