write String

Write a string to the serial port but don’t start a new line.

serial.writeString("");

Just the text of the string is written to the serial port. The next time text is written, it will be on the same line that this text is on. The text is written without making a new line.

Parameters

  • text: the string to write to the serial port

Example

Writes the word JUMBO to the serial port a bunch of times, without any new lines.

forever(() => {
    serial.writeString("JUMBO");
    pause(1000);
});

See also

write line, write number, write value

serial