Wrote new Serial topic
This commit is contained in:
parent
0d1b91afc3
commit
a890d2a357
31
docs/reference/serial/write-string.md
Normal file
31
docs/reference/serial/write-string.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# 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](/reference/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)
|
Loading…
Reference in New Issue
Block a user