SoftwareSerial Not work?

Hi people!

I have a question…

I´m trying to use SerialSoftware library o use ESP to comunicate with other device but after compiling I receive the message " SerialSoftware.h No Such file or diretory".

Is not possible to use this library with ESP32 Lora?

I need this because all ports is in use and I need more then two Serial comunication…

Thank you for the help.!

Currently this SerialSoftware library only supports cubecell series.
Because ESP32 already has three uarts, there is no SerialSoftware library added.
Have you taken all three serial ports?

Hi Quency,

Thank you for your replay!

Actually I understand the U0 is the same of USB and I´m using to debug software U2 RX is the same PIN of OLED_RST and I don´t know another serial port…

I tried to not use the pin with red arrow and I´m using 3 ADC ports too for an Accelerometer…

I´m new with Arduino and I try to find a way resolve this problem…

If you have any other comment to help me to find a solution…

Thank you in advance!


ESP32 can use the pin mapping function to map uart to any pin. You can use this function to complete the mapping function Serial2.begin (115200, SERIAL_8N1, 33, 32) ;.

  • Heltec Automation ESP32 Serial 2 example.
  • work with ESP32’s IO MUX

//HardwareSerial Serial2(2);

void setup() {


// Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
// The txPin & rxPin can set to any output pin
Serial2.begin(115200, SERIAL_8N1, 33, 32);

void loop() {

if(Serial.available()) {
int ch =;

if(Serial2.available()) {
int ch =;

1 Like

Hi Quency!

Many thanks for your example and explanation!

I see it yesterday night and I did the same thing your example and work fine!

Thanks again!