@@ -27,7 +27,7 @@ A UART object acts like a stream object and reading and writing is done
2727using the standard stream methods::
2828
2929 uart.read(10) # read 10 characters, returns a bytes object
30- uart.readall() # read all available characters
30+ uart.read() # read all available characters
3131 uart.readline() # read a line
3232 uart.readinto(buf) # read and store into the given buffer
3333 uart.write('abc') # write the 3 characters
@@ -122,6 +122,9 @@ Methods
122122 If ``nbytes `` are available in the buffer, returns immediately, otherwise returns
123123 when sufficient characters arrive or the timeout elapses.
124124
125+ If ``nbytes `` is not given then the method reads as much data as possible. It
126+ returns after the timeout has elapsed.
127+
125128 .. only :: port_pyboard
126129
127130 *Note: * for 9 bit characters each character takes two bytes, ``nbytes `` must
@@ -130,12 +133,6 @@ Methods
130133 Return value: a bytes object containing the bytes read in. Returns ``None ``
131134 on timeout.
132135
133- .. method :: UART.readall()
134-
135- Read as much data as possible. Returns after the timeout has elapsed.
136-
137- Return value: a bytes object or ``None `` if timeout prevents any data being read.
138-
139136.. method :: UART.readchar()
140137
141138 Receive a single character on the bus.
0 commit comments