I cannot find the answer from official document and also surprised no one asked the same question.
What is the default baud rates if I didn't call Serial.begin
?
1 Answer 1
There is no default baud rate. When the sketch starts, the serial port
is disabled (thus non-functional). Calling Serial.begin()
enables the
port.
answered May 8, 2022 at 8:49
-
Really appreciate! I just found even though I use
Serial.println
inloop
function. The TX LED light won't blink unless I addedSerial.begin
insetup
function.Weihang Jian– Weihang Jian2022年05月08日 08:52:44 +00:00Commented May 8, 2022 at 8:52 -
1Just for completeness: On some alternative boards that are also compatible with Arduino IDE (like e.g. ESP8266 and ESP32 boards), some information is transmitted on serial before your sketch even starts. The default baud rate then is dependent on the chip and/or board.orithena– orithena2022年05月09日 08:25:36 +00:00Commented May 9, 2022 at 8:25