Closed
Description
// SerialBeginTwice test by Jean-Marc Zingg
//
// Purpose: test issue with ESP32 compiled for ESP32 Dev Module
void setup()
{
Serial.begin(115200);
delay(100);
Serial.println("going to call Serial.begin(115200); a second time. Should tell success ...");
delay(100);
Serial.begin(115200);
delay(100);
Serial.println("... success, returned from second call to Serial.begin(115200); Bye and out.");
delay(100);
}
void loop() {}
I verified this on a ESP32 Dev Module clone, on a Wemos LOLIN32 Lite, and on the Waveshare e-Paper ESP32 Driver Board.
The GxEPD2 examples call Serial.begin(115200) in setup() to Serial.print("setup"), and again in display.init(115200).
Related post in Arduino Forum Displays: https://forum.arduino.cc/index.php?topic=487007.msg4952538#msg4952538