2016-07-11 19:58:16 +02:00
|
|
|
# Serial Write String
|
|
|
|
|
|
|
|
Write a string to the [serial](/device/serial) port,
|
|
|
|
without starting a new line afterward.
|
|
|
|
|
|
|
|
```sig
|
|
|
|
serial.writeString("");
|
|
|
|
```
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## Parameters
|
2016-07-11 19:58:16 +02:00
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
* `text` is the [string](/types/string) to write to the serial port
|
2016-07-11 19:58:16 +02:00
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## Example: simple serial
|
2016-07-11 19:58:16 +02:00
|
|
|
|
|
|
|
This program writes the word `JUMBO` to the serial port repeatedly,
|
|
|
|
without any new lines.
|
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.forever(() => {
|
|
|
|
serial.writeString("JUMBO");
|
|
|
|
basic.pause(1000);
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## See also
|
2016-07-11 19:58:16 +02:00
|
|
|
|
|
|
|
[serial](/device/serial),
|
|
|
|
[serial write line](/reference/serial/write-line),
|
|
|
|
[serial write number](/reference/serial/write-number),
|
|
|
|
[serial write value](/reference/serial/write-value)
|