Closed
Description
Board
ESP32-S3
Device Description
Custom board with ESP32-S3
Hardware Configuration
custom board, hardware checked and good.
Version
v2.0.14
IDE Name
Arduino IDE 2.2.1
Operating System
Win10
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
921600 through USB CDC
Description
Serial1 pins can be assigned using begin(rx,tx etc
But I need to assign also RTS pin.
If I use Serial1.setPins, it looses Rx assignment. TX and RTS assignment are kept correct.
I test it by commenting or uncommenting Serial1.setPins function after Serial1.begin
Sketch
void setup() {
Serial.begin(9600);
Serial1.begin(9600,SERIAL_8N1,13,11,false,500,112);//works, but I cannot assign RTS pin
//Serial1.setPins(13, 11, -1, 12); //Does not work, but I need to assign RTS pin.
//Serial1.setMode(MODE_RS485_HALF_DUPLEX);//I need RTS for RS-485 mode
}
void loop() {
if (Serial1.available()) {
int bait = Serial1.read();
Serial.println(bait);
}
}
Debug Message
NA
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.