XIAO-ESP32C3 Serial Output

Hello,

quite a bit has already been written about this and help has also been offered,
but it still does not seem to work.

I just want to output “Ok” in the serial monitor in the Arduino IDE with the following code. But nothing appears!

void setup() {
Serial.begin(115200); Serial.println(“Ok”);
}

void loop() { // }

I have of course set USB CDC On boot to “enabled”.

What is wrong there?

Greetings

Erik

Hi. I’m late.
Maybe you can try to put the println inside the loop and add a while (!serial). As shown in the Wiki code

1 Like

Hi @Highli ,
It working in my Arduino IDE.

image

Depending on the console application, “Ok” may not be displayed.
Try adding delay() between Serial.begin() and Serial.println(). (For example, “delay(2000);”)

1 Like