Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

How can I print to the serial monitor a string or just single character followed by a variable like "L 55"

share|improve this question
    
Read the Arduino docs for Serial.print. –  jfpoilpret Mar 10 at 19:52

1 Answer 1

up vote 4 down vote accepted
int Var = 55;
//Do it in 2 lines e.g.
Serial.print("L ");     // String
Serial.println(Var);    // Print Variable on same line then send a line feed
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.