mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
tests: Update pyb/uart.py test since baudrate of 1200 is too low.
This commit is contained in:
parent
4852e09c79
commit
b67253e96f
@ -5,7 +5,7 @@ uart = UART(1, 9600)
|
|||||||
uart = UART(1, 9600, bits=8, parity=None, stop=1)
|
uart = UART(1, 9600, bits=8, parity=None, stop=1)
|
||||||
print(uart)
|
print(uart)
|
||||||
|
|
||||||
uart.init(1200)
|
uart.init(2400)
|
||||||
print(uart)
|
print(uart)
|
||||||
|
|
||||||
print(uart.any())
|
print(uart.any())
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
UART(1, baudrate=9600, bits=8, parity=None, stop=1, timeout=1000, timeout_char=0, read_buf_len=64)
|
UART(1, baudrate=9600, bits=8, parity=None, stop=1, timeout=1000, timeout_char=0, read_buf_len=64)
|
||||||
UART(1, baudrate=1200, bits=8, parity=None, stop=1, timeout=1000, timeout_char=0, read_buf_len=64)
|
UART(1, baudrate=2400, bits=8, parity=None, stop=1, timeout=1000, timeout_char=0, read_buf_len=64)
|
||||||
False
|
False
|
||||||
3
|
3
|
||||||
4
|
4
|
||||||
|
Loading…
Reference in New Issue
Block a user