Types of line-ending serial monitor Arduino

Arduino of End Line Character

Assalamualaikum. When using the Serial Monitor on the Arduino IDE, there are several types of line-ending serial for the Arduino serial monitor that we can use, namely No line ending, New Line, Carriage Return, and Both NL & CR.

These options are also known as Control Characters.

When you test these options one by one, the display data received by the Serial Monitor will differ from one option to another.

Then what are the different types of Arduino Serial Monitor shipments and what does it mean? Here’s a brief explanation.

Types of line-ending serial monitor Arduino
Arduino Serial Option (source by Arduino Forum)

No Line Ending

The No line ending option means that the data sent is according to the data entered.

New Line (NL)

The New Line option will insert an ASCII code “\n” at the end of the data when sent.

Carriage Return (CR)

The Carriage Return option will insert an ASCII code “\r” at the end of the data when it is sent.

Both NL & CR

NL (New Line) & CR (Carriage Return) will insert the code “\n\r” at the end of the data when sent.

Hopefully, this brief explanation of Types of line-ending serial monitor Arduino can add to our insights . If you find this article helpful, you can share it using the share button below.

Read more:
>Serial Print One Line Arduino Multi Data
>Display Time Every Second Arduino RTC
>gpg: keyserver receive failed: General error Linux

Similar Posts