Writing To Console

I ran into this topic because I had the same question. The vague sort-of answer at the end left me to explore the example code to find the answer.

In setup(), start serial and choose your speed:

Serial.begin(9600);

Wherever you want to write to serial:

Serial.write("write this");

Wherever you want a newline:

Serial.println();

Everyone learns somewhere, why not make this a friendly place?

6 Likes