Skip to content

Commit aa700a8

Browse files
tannewtdhalbert
authored andcommitted
shared-bindings: Clarify that UART.read() is slow. (adafruit#209)
1 parent 447a4b1 commit aa700a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-bindings/busio/UART.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_uart___exit___obj, 4, 4, busio_
147147
//| .. method:: read(nbytes=None)
148148
//|
149149
//| Read characters. If ``nbytes`` is specified then read at most that many
150-
//| bytes. Otherwise, read everything that has been buffered.
150+
//| bytes. Otherwise, read everything that arrives until the connection
151+
//| times out. Providing the number of bytes expected is highly recommended
152+
//| because it will be faster.
151153
//|
152154
//| :return: Data read
153155
//| :rtype: bytes or None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy