summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/uart.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/uart.py')
-rw-r--r--tests/pyb/uart.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/pyb/uart.py b/tests/pyb/uart.py
index 6e0118d155..288022fea4 100644
--- a/tests/pyb/uart.py
+++ b/tests/pyb/uart.py
@@ -2,11 +2,13 @@ from pyb import UART
uart = UART(1)
uart = UART(1, 9600)
-uart = UART(1, 9600, bits=8, stop=1, parity=None)
+uart = UART(1, 9600, bits=8, parity=None, stop=1)
print(uart)
uart.init(1200)
print(uart)
-uart.any()
-uart.send(1, timeout=500)
+print(uart.any())
+print(uart.write('123'))
+print(uart.write(b'abcd'))
+print(uart.writechar(1))