Garbage on serial monitor ESP32

I have the following code

<code>

void setup() {

pinMode(blue, OUTPUT);

pinMode(red, OUTPUT);

pinMode(yellow, OUTPUT);

pinMode(green, OUTPUT);

digitalWrite(blue, HIGH);

delay(2000);

digitalWrite(blue, LOW);

digitalWrite(red, HIGH);

delay(2000);

digitalWrite(red, LOW);

digitalWrite(yellow, HIGH);

delay(2000);

digitalWrite(yellow, LOW);

digitalWrite(green, HIGH);

delay(2000);

digitalWrite(green, LOW);

Serial.println(“START WiFi”);

……..

blue, red, yellow, green are GPIOs

monitor_speed is set to 115200

while the Leds are going on and off the seriell monitor shows a lot of garbage. The

Serial.println(“START WiFi”);

works correct.

MCU is ESP32

platformio.ini

[env:esp32dev]

platform = espressif32

board = esp32dev

framework = arduino

monitor_speed = 115200

lib_deps = gilmaimon/ArduinoWebsockets@^0.5.4

I wonder about the garbage shown.

Please use preformatted text when posting code or log lines to increase the readability!

The code snippet appears to be incomplete. Does your actual code also include the line Serial.begin(115200);?

thank you for quick response, yes Serial.begin(115200); is the first line after void setup()

but I do not understand the world any more, while i got the garbage yesterday multiple times it is gone today. Didn’t change anything. Just powered of my iMAC, yesterday evening and powered on this morning, wrote to the forum and continued testing.

Kind Regards

Rainer