@@ -106,9 +106,20 @@ class SoftwareSerial : public Stream {
106
106
// / bit receive buffer, a suggested size is bufCapacity times the sum of
107
107
// / start, data, parity and stop bit count.
108
108
void begin (uint32_t baud, SoftwareSerialConfig config,
109
- int8_t rxPin, int8_t txPin = -1 ,
110
- bool invert = false , int bufCapacity = 64 , int isrBufCapacity = 0 );
111
- void begin (uint32_t baud, SoftwareSerialConfig config = SWSERIAL_8N1);
109
+ int8_t rxPin, int8_t txPin, bool invert,
110
+ int bufCapacity = 64 , int isrBufCapacity = 0 );
111
+ void begin (uint32_t baud, SoftwareSerialConfig config,
112
+ int8_t rxPin, int8_t txPin) {
113
+ begin (baud, config, rxPin, txPin, m_invert);
114
+ }
115
+ void begin (uint32_t baud, SoftwareSerialConfig config,
116
+ int8_t rxPin) {
117
+ begin (baud, config, rxPin, m_txPin, m_invert);
118
+ }
119
+ void begin (uint32_t baud, SoftwareSerialConfig config = SWSERIAL_8N1) {
120
+ begin (baud, config, m_rxPin, m_txPin, m_invert);
121
+ }
122
+
112
123
uint32_t baudRate ();
113
124
// / Transmit control pin.
114
125
void setTransmitEnablePin (int8_t txEnablePin);
0 commit comments