summaryrefslogtreecommitdiff
path: root/tests/pyb/uart.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/uart.py')
-rw-r--r--tests/pyb/uart.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pyb/uart.py b/tests/pyb/uart.py
index cb0be91c0..838dd9cfc 100644
--- a/tests/pyb/uart.py
+++ b/tests/pyb/uart.py
@@ -23,3 +23,10 @@ print(uart.writechar(1))
# make sure this method exists
uart.sendbreak()
+
+# non-blocking mode
+uart = UART(1, 9600, timeout=0)
+print(uart.write(b'1'))
+print(uart.write(b'abcd'))
+print(uart.writechar(1))
+print(uart.read(100))