Skip to content

Commit fe1c366

Browse files
committed
Removed HardwareSerial.h include. Switched RTS pin to GPIO 4 for broader compatability.
1 parent 28a1ef6 commit fe1c366

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/ESP32/examples/Serial/RS485_Echo_Demo/RS485_Echo_Demo.ino

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
using an RS485 tranciver, connect another serial monitor to the RS485 port. Entering data on one terminal
1212
should be displayed on the other terminal.
1313
*/
14-
15-
#include <HardwareSerial.h>
1614
#include "hal/uart_types.h"
1715

1816
#define RS485_RX_PIN 16
1917
#define RS485_TX_PIN 5
20-
#define RS485_RTS_PIN 37
18+
#define RS485_RTS_PIN 4
2119

2220
#define RS485 Serial1
2321

0 commit comments

Comments
 (0)