pxt-calliope/docs/reference/serial/set-tx-buffer-size.md

23 lines
370 B
Markdown
Raw Permalink Normal View History

# set Tx Buffer Size
Sets the length of the serial transmission buffer in bytes.
```sig
serial.setTxBufferSize(10)
```
## Parameters
* **size**: desired length of the transmission buffer
## Example
Allocates 64 bytes for the transmission buffer.
```typescript
serial.setTxBufferSize(64)
```
## See also
[set rx buffer size](/reference/serial/set-rx-buffer-size)