Writing To Console

stutteringp0et:
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.

Reply #1 had a complete answer to the original question which, as far as I can see, was different from yours.

Your code does not address the original question.

And I think Serial.print() and .println() are adequately covered in the Reference pages.
I think it is reasonable to expect people to read them before posting questions.

...R