mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
EspSoftwareSerial 8.0.1: onReceive bug fix and new namespace (#8869)
* Upcoming EspSoftwareSerial 7.0.1 * EspSoftwareSerial example: higher bitrates due to forcing half-duplex * Adapt to SoftwareSerial's latest use of namespace. * In EspSoftwareSerial, some renaming after review feedback. * EspSoftwareSerial's use of a template class in order to permit users their own GPIO capabilities definitions. * CI caught some warning. * Stick to non-namespace EspSoftwareSerial class name for the moment. * Delegate operator() is now nullptr-safe, good for use in ISRs. * Pushed EspSoftwareSerial 8.0.1: Platformio picks up versions that aren't published in Github
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
SWAP_PINS:
|
||||
0: use Serial1 for logging (legacy example)
|
||||
1: configure Hardware Serial port on RX:GPIO13 TX:GPIO15
|
||||
and use SoftwareSerial for logging on
|
||||
and use EspSoftwareSerial for logging on
|
||||
standard Serial pins RX:GPIO3 and TX:GPIO1
|
||||
*/
|
||||
|
||||
@ -84,11 +84,11 @@ void setup() {
|
||||
#if SWAP_PINS
|
||||
Serial.swap();
|
||||
// Hardware serial is now on RX:GPIO13 TX:GPIO15
|
||||
// use SoftwareSerial on regular RX(3)/TX(1) for logging
|
||||
// use EspSoftwareSerial on regular RX(3)/TX(1) for logging
|
||||
logger = new SoftwareSerial(3, 1);
|
||||
logger->begin(BAUD_LOGGER);
|
||||
logger->enableIntTx(false);
|
||||
logger->println("\n\nUsing SoftwareSerial for logging");
|
||||
logger->println("\n\nUsing EspSoftwareSerial for logging");
|
||||
#else
|
||||
logger->begin(BAUD_LOGGER);
|
||||
logger->println("\n\nUsing Serial1 for logging");
|
||||
|
Reference in New Issue
Block a user