Enable help for serial readString() (#609)
This commit is contained in:
parent
e20ac7f992
commit
79018d4f00
@ -1,6 +1,6 @@
|
||||
# Serial Read String
|
||||
|
||||
Read the buffered serial data as a string
|
||||
Read the buffered serial data as a string.
|
||||
|
||||
```sig
|
||||
serial.readString();
|
||||
@ -8,7 +8,7 @@ serial.readString();
|
||||
|
||||
## Returns
|
||||
|
||||
* a [string](/types/string) containing input from the serial port. Empty if no data available.
|
||||
* a [string](/types/string) containing input from the serial port. The string is empty if no data is available.
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -75,6 +75,7 @@ namespace serial {
|
||||
/**
|
||||
* Reads the buffered received data as a string
|
||||
*/
|
||||
//% help=serial/read-string
|
||||
//% blockId=serial_read_buffer block="serial|read string"
|
||||
//% weight=18
|
||||
StringData* readString() {
|
||||
|
Loading…
Reference in New Issue
Block a user