pxt-calliope/docs/reference/serial/write-string.md
Sam El-Husseini e3975e65e5 pxt-microbit Accessibility PR ()
* Accessibility changes
2017-09-07 13:42:08 -07:00

32 lines
649 B
Markdown

# Serial Write String
Write a string to the [serial](/device/serial) port,
without starting a new line afterward.
```sig
serial.writeString("");
```
## Parameters
* `text` is the [string](/types/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.
```blocks
basic.forever(() => {
serial.writeString("JUMBO");
basic.pause(1000);
});
```
## See also
[serial](/device/serial),
[serial write line](/reference/serial/write-line),
[serial write number](/reference/serial/write-number),
[serial write value](/reference/serial/write-value)