Hi All, You would think a print instruction would be very important for Arduino and for any programming language for that matter as they usually start with a simple program such as "hello world". However in the Arduino reference can't find anything on printing text and variable values in the same line. Found the answer by accident in a forum reply. This should be shown in the Arduino reference in help. I have seen that many people have been having the same problem. Like everything else its simple when you know how in Arduino anyway. Other languages make it hard. Do this; Serial.print ("x="); Serial.println(x); x is a variable. If x happens to have the value 5 the print out in the serial monitor will be x=5 all on one line.
I have made a very good program for modulating an infrared signal at 38khz so that it has the nec coding. I want to have this included in the example programs in Arduino. How do I get this done as other people have done with the author shown on the example program? The above print statement is included.