shared-bindings: Clarify that UART.read() is slow. (#209)
This commit is contained in:
parent
447a4b1ecd
commit
aa700a8b42
@ -147,7 +147,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_uart___exit___obj, 4, 4, busio_
|
|||||||
//| .. method:: read(nbytes=None)
|
//| .. method:: read(nbytes=None)
|
||||||
//|
|
//|
|
||||||
//| Read characters. If ``nbytes`` is specified then read at most that many
|
//| Read characters. If ``nbytes`` is specified then read at most that many
|
||||||
//| bytes. Otherwise, read everything that has been buffered.
|
//| bytes. Otherwise, read everything that arrives until the connection
|
||||||
|
//| times out. Providing the number of bytes expected is highly recommended
|
||||||
|
//| because it will be faster.
|
||||||
//|
|
//|
|
||||||
//| :return: Data read
|
//| :return: Data read
|
||||||
//| :rtype: bytes or None
|
//| :rtype: bytes or None
|
||||||
|
Loading…
Reference in New Issue
Block a user