We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9cb3b1 commit 8845b27Copy full SHA for 8845b27
libraries/SoftwareSerial/src/SoftwareSerial.cpp
@@ -113,9 +113,11 @@ void SoftwareSerial::begin(uint32_t baudRate)
113
void SoftwareSerial::begin(uint32_t baudRate, HardwareSerial_Config_e SSconfig)
114
{
115
pinMode(_txPin, OUTPUT);
116
- pinMode(_rxPin, INPUT_PULLUP);
+ digitalWrite(_txPin, _invertLogic ? LOW : HIGH);
117
118
- am_hal_gpio_output_set(_txPad);
+ pinMode(_rxPin, INPUT);
119
+ if (_invertLogic == false)
120
+ pinMode(_rxPin, INPUT_PULLUP); //Enable external pullup if using normal logic
121
122
// Enable C/T H=7
123
am_hal_stimer_int_enable(AM_HAL_STIMER_INT_COMPAREH);
0 commit comments