![Damien George](/assets/img/avatar_default.png)
In non-blocking mode (timeout=0), uart.write() can now transmit all of its data without raising an exception. uart.read() also works correctly in this mode. As part of this patch, timout_char now has a minimum value which is long enough to transfer 1 character. Addresses issue #1533.
25 lines
356 B
Plaintext
25 lines
356 B
Plaintext
ValueError -1
|
|
ValueError 0
|
|
UART 1
|
|
UART 2
|
|
UART 3
|
|
UART 4
|
|
ValueError 5
|
|
UART 6
|
|
ValueError 7
|
|
UART XA
|
|
UART XB
|
|
UART YA
|
|
UART YB
|
|
ValueError Z
|
|
UART(1, baudrate=9600, bits=8, parity=None, stop=1, timeout=1000, timeout_char=2, read_buf_len=64)
|
|
UART(1, baudrate=2400, bits=8, parity=None, stop=1, timeout=1000, timeout_char=6, read_buf_len=64)
|
|
0
|
|
3
|
|
4
|
|
None
|
|
1
|
|
4
|
|
None
|
|
None
|