support for serial read/write buffer (#384)
This commit is contained in:
1 parent
43bad888dc
commit
17c1abe86a
5 files changed
+76
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Serial Read Buffer
|
||||
|
||||
Read the buffered serial data as a buffer
|
||||
|
||||
```sig
|
||||
serial.readBuffer(64);
|
||||
```
|
||||
|
||||
### Returns
|
||||
|
||||
* a Buffer containing input from the serial port. Empty if no data available.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Serial Write Buffer
|
||||
|
||||
Write a buffer to the [serial](/device/serial) port.
|
||||
|
||||
```sig
|
||||
serial.writeBuffer(pins.createBuffer(0));
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* `buffer` is the buffer to write to the serial port
|
||||
Reference in new issue
Block a user