From f8b98d832962f89ac860834c65d194ed606119ec Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Mon, 7 Sep 2015 10:14:27 +0200 Subject: tests/wipy: Improve UART tests with no pin assignment case. --- tests/wipy/uart.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/wipy/uart.py') diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py index 82bbe8a38..a483891ad 100644 --- a/tests/wipy/uart.py +++ b/tests/wipy/uart.py @@ -76,6 +76,17 @@ print(uart1.read() == b'') print(uart1.write(b'123') == 3) print(uart0.read() == b'123') +Pin('GP13', mode=Pin.IN) +Pin('GP12', mode=Pin.IN) +# no pin assignemnt +uart0 = UART(0, 1000000, pins=None) +print(uart0.write(b'123456789') == 9) +print(uart1.read() == b'') +print(uart1.write(b'123456789') == 9) +print(uart0.read() == b'') +print(Pin.board.GP12) +print(Pin.board.GP13) + # next ones must raise try: UART(0, 9600, parity=2, pins=('GP12', 'GP13', 'GP7')) -- cgit v1.2.3