mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +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:
parent
6ad9bf3b07
commit
23036328a5
@ -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");
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 12f848042ee87637abcafa429618a8a6910db288
|
||||
Subproject commit a00554a6ad1d28c633dd893e6d6ec4ca2811437f
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
Serial read/write/verify/benchmark
|
||||
Using internal loopback
|
||||
Using SoftwareSerial library for logging
|
||||
Using EspSoftwareSerial library for logging
|
||||
|
||||
Sketch meant for debugging only
|
||||
Released to public domain
|
||||
|
Loading…
x
Reference in New Issue
Block a user