pxt-calliope/docs/reference/serial/write-string.md
2016-07-11 10:58:16 -07:00

662 B

Serial Write String

Write a string to the serial port, without starting a new line afterward.

serial.writeString("");

Parameters

  • text is the string to write to the serial port

Example: simple serial

This program writes the word JUMBO to the serial port repeatedly, without any new lines.

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

See also

serial, serial write line, serial write number, serial write value