@@ -91,7 +91,7 @@ class SoftwareSerial : public Stream {
91
91
// / Ctor to set defaults for pins.
92
92
// / @param rxPin the GPIO pin used for RX
93
93
// / @param txPin -1 for onewire protocol, GPIO pin used for twowire TX
94
- SoftwareSerial (int8_t rxPin, int8_t txPin = -1 );
94
+ SoftwareSerial (int8_t rxPin, int8_t txPin = -1 , bool invert = false );
95
95
SoftwareSerial (const SoftwareSerial&) = delete ;
96
96
SoftwareSerial& operator = (const SoftwareSerial&) = delete ;
97
97
virtual ~SoftwareSerial ();
@@ -105,9 +105,10 @@ class SoftwareSerial : public Stream {
105
105
// / @param isrBufCapacity 0: derived from bufCapacity. The capacity of the internal asynchronous
106
106
// / bit receive buffer, a suggested size is bufCapacity times the sum of
107
107
// / start, data, parity and stop bit count.
108
- void begin (uint32_t baud, SoftwareSerialConfig config = SWSERIAL_8N1 ,
109
- int8_t rxPin = - 1 , int8_t txPin = -1 ,
108
+ void begin (uint32_t baud, SoftwareSerialConfig config,
109
+ int8_t rxPin, int8_t txPin = -1 ,
110
110
bool invert = false , int bufCapacity = 64 , int isrBufCapacity = 0 );
111
+ void begin (uint32_t baud, SoftwareSerialConfig config = SWSERIAL_8N1);
111
112
uint32_t baudRate ();
112
113
// / Transmit control pin.
113
114
void setTransmitEnablePin (int8_t txEnablePin);
0 commit comments